-
Notifications
You must be signed in to change notification settings - Fork 1
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 7d1b66d
Showing
17 changed files
with
1,339 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 @@ | ||
/vendor | ||
composer.phar | ||
composer.lock | ||
.DS_Store | ||
/nbproject/private/ | ||
/.idea | ||
.phpunit.result.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,22 @@ | ||
sudo: false | ||
|
||
language: php | ||
|
||
dist: trusty | ||
|
||
php: | ||
- 7.2 | ||
|
||
env: | ||
- LARAVEL_VERSION="6.0.*" | ||
|
||
before_script: | ||
- composer self-update | ||
- composer require laravel/framework:$LARAVEL_VERSION --no-update | ||
- composer install --prefer-source --no-interaction | ||
|
||
script: | ||
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml | ||
|
||
after_script: | ||
- vendor/bin/test-reporter |
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,5 @@ | ||
# Active Package Contribution Guide | ||
|
||
Thank you for considering contributing to the Active! Please make a pull request to the correct branch: | ||
|
||
* `master` branch: changes applied to Laravel 6 |
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) 2014 Hieu Le Trung | ||
|
||
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,24 @@ | ||
Active for Laravel | ||
====== | ||
Library is based on https://github.com/letrunghieu/active | ||
|
||
The helper class for Laravel applications (L4,L5 and L6) to get active class base on current url. | ||
|
||
## Installation | ||
|
||
Require this package as your dependencies: | ||
|
||
``` | ||
composer require krgupta/active | ||
``` | ||
|
||
Append this line to your `providers` array in `config/app.php` | ||
|
||
```php | ||
krgupta\Active\ActiveServiceProvider::class, | ||
``` | ||
|
||
Append this line to your `aliases` array in `config/app.php` | ||
|
||
```php | ||
'Active' => krgupta\Active\Facades\Active::class, |
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,48 @@ | ||
{ | ||
"name": "krgupta/active", | ||
"description": "The helper class for Laravel 6 applications to get active class base on current route", | ||
"keywords": [ | ||
"laravel", | ||
"active", | ||
"routing" | ||
], | ||
"license": "MIT", | ||
"homepage": "", | ||
"authors": [ | ||
{ | ||
"name": "Kamlesh Gupta", | ||
"email": "webworldgk@gmail.com", | ||
"homepage": "" | ||
} | ||
], | ||
"require": { | ||
"php": "^7.2", | ||
"laravel/framework": "^6.0" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^8.0", | ||
"codeclimate/php-test-reporter": "dev-master", | ||
"orchestra/testbench": "^4.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"HieuLe\\Active\\": "src/", | ||
"HieuLe\\ActiveTest\\": "tests/" | ||
}, | ||
"files": [ | ||
"src/helpers.php" | ||
] | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"Krgupta\\Active\\ActiveServiceProvider" | ||
], | ||
"aliases": { | ||
"Active": "Krgupta\\Active\\Facades\\Active" | ||
} | ||
} | ||
} | ||
} |
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,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit backupGlobals="false" | ||
backupStaticAttributes="false" | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
verbose="true" | ||
> | ||
<testsuites> | ||
<testsuite name="Package Test Suite"> | ||
<directory suffix=".php">./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist> | ||
<directory suffix=".php">src/</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
Oops, something went wrong.