-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit fcd50f5
Showing
24 changed files
with
844 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
* text=auto | ||
*.css linguist-vendored | ||
*.scss linguist-vendored | ||
*.js linguist-vendored | ||
CHANGELOG.md export-ignore | ||
composer.lock -merge | ||
package-lock.json -merge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# These are supported funding model platforms | ||
|
||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: ramakant | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Ask a Question | ||
url: https://github.com/rxcod9/joy-voyager-crm/discussions/new?category=q-a | ||
about: Ask the community for help | ||
- name: Feature Request | ||
url: https://github.com/rxcod9/joy-voyager-crm/discussions/new?category=ideas | ||
about: Share ideas for new features | ||
- name: Bug Report | ||
url: https://github.com/rxcod9/joy-voyager-crm/issues/new | ||
about: Report a reproducable bug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Check & fix styling | ||
|
||
on: [push] | ||
|
||
jobs: | ||
style: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Fix style | ||
uses: docker://oskarstark/php-cs-fixer-ga | ||
with: | ||
args: --config=.php-cs-fixer.php --allow-risky=yes | ||
|
||
- name: Extract branch name | ||
shell: bash | ||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | ||
id: extract_branch | ||
|
||
- name: Commit changes | ||
uses: stefanzweifel/[email protected] | ||
with: | ||
commit_message: Fix styling | ||
branch: ${{ steps.extract_branch.outputs.branch }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: run-tests | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: [7.4] | ||
laravel: [8.*, 7.*] | ||
dependency-version: [prefer-lowest, prefer-stable] | ||
include: | ||
- laravel: 8.* | ||
testbench: 6.* | ||
- laravel: 7.* | ||
testbench: 5.* | ||
|
||
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} | ||
|
||
steps: | ||
- name: Update apt | ||
run: sudo apt-get update --fix-missing | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick | ||
coverage: none | ||
|
||
- name: Setup Problem Matches | ||
run: | | ||
echo "::add-matcher::${{ runner.tool_cache }}/php.json" | ||
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | ||
- name: Install dependencies | ||
run: | | ||
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update | ||
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest | ||
- name: Execute tests | ||
run: vendor/bin/phpunit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
vendor/* | ||
.php-cs-fixer.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
<?php | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->notPath('spark') | ||
->notPath('bootstrap') | ||
->notPath('storage') | ||
->notPath('vendor') | ||
->in(__DIR__ . '/src') | ||
->in(__DIR__ . '/tests') | ||
->name('*.php') | ||
->name('_ide_helper') | ||
->notName('*.blade.php') | ||
->ignoreDotFiles(true) | ||
->ignoreVCS(true); | ||
|
||
$config = new PhpCsFixer\Config(); | ||
return $config->setRules([ | ||
'@PSR2' => true, | ||
'array_indentation' => true, | ||
'array_syntax' => ['syntax' => 'short'], | ||
'combine_consecutive_unsets' => true, | ||
'class_attributes_separation' => ['elements' => ['method' => 'one']], | ||
'multiline_whitespace_before_semicolons' => true, | ||
'single_quote' => true, | ||
'binary_operator_spaces' => [ | ||
'operators' => [ | ||
'=>' => 'align_single_space_minimal', | ||
'=' => 'align_single_space_minimal', | ||
], | ||
], | ||
// 'blank_line_after_opening_tag' => true, | ||
// 'blank_line_before_return' => true, | ||
'braces' => [ | ||
'allow_single_line_closure' => true, | ||
], | ||
// 'cast_spaces' => true, | ||
// 'class_definition' => array('singleLine' => true), | ||
'concat_space' => ['spacing' => 'one'], | ||
'declare_equal_normalize' => true, | ||
'function_typehint_space' => true, | ||
'single_line_comment_style' => ['comment_types' => ['hash']], | ||
'include' => true, | ||
'lowercase_cast' => true, | ||
// 'native_function_casing' => true, | ||
// 'new_with_braces' => true, | ||
// 'no_blank_lines_after_class_opening' => true, | ||
// 'no_blank_lines_after_phpdoc' => true, | ||
// 'no_empty_comment' => true, | ||
// 'no_empty_phpdoc' => true, | ||
// 'no_empty_statement' => true, | ||
'no_extra_blank_lines' => [ | ||
'tokens' => [ | ||
'case', | ||
'continue', | ||
'curly_brace_block', | ||
'default', | ||
'extra', | ||
'parenthesis_brace_block', | ||
'square_brace_block', | ||
'switch', | ||
'throw', | ||
'use', | ||
'use_trait', | ||
], | ||
], | ||
// 'no_leading_import_slash' => true, | ||
// 'no_leading_namespace_whitespace' => true, | ||
// 'no_mixed_echo_print' => array('use' => 'echo'), | ||
'no_multiline_whitespace_around_double_arrow' => true, | ||
// 'no_short_bool_cast' => true, | ||
// 'no_singleline_whitespace_before_semicolons' => true, | ||
'no_spaces_around_offset' => true, | ||
// 'no_trailing_comma_in_list_call' => true, | ||
// 'no_trailing_comma_in_singleline_array' => true, | ||
// 'no_unneeded_control_parentheses' => true, | ||
'no_unused_imports' => true, | ||
// 'ordered_imports' => true, | ||
'no_whitespace_before_comma_in_array' => true, | ||
'no_whitespace_in_blank_line' => true, | ||
// 'normalize_index_brace' => true, | ||
'object_operator_without_whitespace' => true, | ||
// 'php_unit_fqcn_annotation' => true, | ||
'phpdoc_align' => true, | ||
// 'phpdoc_annotation_without_dot' => true, | ||
// 'phpdoc_indent' => true, | ||
// 'phpdoc_inline_tag' => true, | ||
// 'phpdoc_no_access' => true, | ||
// 'phpdoc_no_alias_tag' => true, | ||
// 'phpdoc_no_empty_return' => true, | ||
// 'phpdoc_no_package' => true, | ||
'phpdoc_no_useless_inheritdoc' => true, | ||
// 'phpdoc_return_self_reference' => true, | ||
// 'phpdoc_scalar' => true, | ||
// 'phpdoc_separation' => true, | ||
// 'phpdoc_single_line_var_spacing' => true, | ||
// 'phpdoc_summary' => true, | ||
// 'phpdoc_to_comment' => true, | ||
// 'phpdoc_trim' => true, | ||
// 'phpdoc_types' => true, | ||
// 'phpdoc_var_without_name' => true, | ||
// 'increment_style' => ['style' => 'pre'], | ||
// 'return_type_declaration' => true, | ||
// 'self_accessor' => true, | ||
// 'short_scalar_cast' => true, | ||
'single_blank_line_before_namespace' => true, | ||
// 'single_class_element_per_statement' => true, | ||
'space_after_semicolon' => true, | ||
// 'standardize_not_equals' => true, | ||
'ternary_operator_spaces' => true, | ||
// 'trailing_comma_in_multiline_array' => true, | ||
'trim_array_spaces' => true, | ||
'unary_operator_spaces' => true, | ||
'whitespace_after_comma_in_array' => true, | ||
]) | ||
->setFinder($finder); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Changelog | ||
|
||
## 1.0.0 | ||
- initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Contributing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) Ramakant Gangwar <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# Joy VoyagerCrm | ||
|
||
This [Laravel](https://laravel.com/)/[Voyager](https://voyager.devdojo.com/) module adds VoyagerCrm support to Voyager. | ||
|
||
By 🐼 [Ramakant Gangwar](https://github.com/rxcod9). | ||
|
||
[](https://joy-voyager-crm.herokuapp.com) | ||
|
||
[](https://github.com/rxcod9/joy-voyager-crm/releases) | ||
 | ||
[](https://packagist.org/packages/joy/voyager-crm) | ||
|
||
--- | ||
|
||
## Prerequisites | ||
|
||
* Composer Installed | ||
* [Install Laravel](https://laravel.com/docs/installation) | ||
* [Install Voyager](https://github.com/the-control-group/voyager) | ||
|
||
--- | ||
|
||
## Installation | ||
|
||
```bash | ||
# 1. Require this Package in your fresh Laravel/Voyager project | ||
composer require joy/voyager-crm | ||
|
||
# 2. Publish | ||
php artisan vendor:publish --provider="Joy\VoyagerCrm\VoyagerCrmServiceProvider" --force | ||
``` | ||
|
||
--- | ||
|
||
<!-- ## Usage | ||
Installation generates. | ||
--- --> | ||
|
||
<!-- ## Views Customization | ||
In order to override views delivered by Voyager DataTable, copy contents from ``vendor/joy/voyager-crm/resources/views`` to the ``views/vendor/joy-voyager-crm`` directory of your Laravel installation. --> | ||
|
||
## Working Example | ||
|
||
You can try laravel demo here [https://joy-voyager-crm.herokuapp.com/api/documentation](https://joy-voyager-crm.herokuapp.com/api/documentation). | ||
|
||
## Documentation | ||
|
||
Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving the joy voyager-crm? Feel free to [create an issue on GitHub](https://github.com/rxcod9/joy-voyager-crm/issues), we'll try to address it as soon as possible. | ||
|
||
If you've found a bug regarding security please mail [[email protected]](mailto:[email protected]) instead of using the issue tracker. | ||
|
||
## Testing | ||
|
||
You can run the tests with: | ||
|
||
```bash | ||
vendor/bin/phpunit | ||
``` | ||
|
||
## Upgrading | ||
|
||
Please see [UPGRADING](UPGRADING.md) for details. | ||
|
||
### Changelog | ||
|
||
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently. | ||
|
||
## Contributing | ||
|
||
Please see [CONTRIBUTING](CONTRIBUTING.md) for details. | ||
|
||
## Security | ||
|
||
If you discover any security related issues, please email [[email protected]](mailto:[email protected]) instead of using the issue tracker. | ||
|
||
## Credits | ||
|
||
- [Ramakant Gangwar](https://github.com/rxcod9) | ||
|
||
## License | ||
|
||
The MIT License (MIT). Please see [License File](LICENSE.md) for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Upgrading | ||
|
Oops, something went wrong.