Skip to content

Commit

Permalink
Upgraded to Laravel 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
krgupta-cygnet committed Oct 11, 2019
0 parents commit 7d1b66d
Show file tree
Hide file tree
Showing 17 changed files with 1,339 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
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
22 changes: 22 additions & 0 deletions .travis.yml
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
5 changes: 5 additions & 0 deletions CONTRIBUTING.md
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
21 changes: 21 additions & 0 deletions LICENSE
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.
24 changes: 24 additions & 0 deletions README.md
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,
48 changes: 48 additions & 0 deletions composer.json
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"
}
}
}
}
23 changes: 23 additions & 0 deletions phpunit.xml
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>
Loading

0 comments on commit 7d1b66d

Please sign in to comment.