Skip to content

Commit

Permalink
Merge pull request #11 from JayBizzle/JayBizzle-patch-1
Browse files Browse the repository at this point in the history
Support Auto-Discovery
  • Loading branch information
JayBizzle committed Jun 1, 2017
2 parents 4d77b0b + 2168368 commit e39b536
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
17 changes: 11 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
language: php

php:
- 5.5
- 5.6
- 7.0
- 7.1
matrix:
include:
- php: 5.5
- php: 5.6
- php: 7.0
- php: 7.1
- php: nightly
allow_failures:
- php: nightly
fast_finish: true

before_script:
- travis_retry composer self-update
- travis_retry composer install --prefer-source --no-interaction --dev

script: phpunit
script: vendor/bin/phpunit
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Add the following to the `providers` array in your `config/app.php` file..
'Crawler' => 'Jaybizzle\LaravelCrawlerDetect\Facades\LaravelCrawlerDetect',
```

Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

Usage
==================
```PHP
Expand Down
13 changes: 12 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,23 @@
"jaybizzle/crawler-detect": "1.*"
},
"require-dev": {
"orchestra/testbench": "3.1.*"
"orchestra/testbench": "3.1.*",
"phpunit/phpunit": "4.*"
},
"autoload": {
"psr-4": {
"Jaybizzle\\LaravelCrawlerDetect\\": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"Jaybizzle\\LaravelCrawlerDetect\\LaravelCrawlerDetectServiceProvider"
],
"aliases": {
"Crawler": "Jaybizzle\\LaravelCrawlerDetect\\Facades\\LaravelCrawlerDetect"
}
}
},
"minimum-stability": "stable"
}

0 comments on commit e39b536

Please sign in to comment.