Skip to content

Commit

Permalink
Merge pull request #8 from ARCANEDEV/update-laravel_6.x_support
Browse files Browse the repository at this point in the history
Adding Laravel 6 support + Rewrite the package by using piwik/device-detector
  • Loading branch information
arcanedev-maroc authored Aug 30, 2020
2 parents 9ae88c6 + 637cbce commit ded41ac
Show file tree
Hide file tree
Showing 16 changed files with 802 additions and 716 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [7.1, 7.2, 7.3, 7.4]
php: [7.2, 7.3, 7.4]
dependency-version: [prefer-lowest, prefer-stable]

name: PHP ${{ matrix.php }} - ${{ matrix.dependency-version }}
Expand Down
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ checks:
tools:
external_code_coverage:
timeout: 600
runs: 8
runs: 6
php_code_sniffer:
enabled: true
config:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Agent [![Packagist License][badge_license]](LICENSE.md) [![For Laravel 5][badge_laravel]][link-github-repo]
# Agent [![Packagist License][badge_license]](LICENSE.md) [![For Laravel][badge_laravel]][link-github-repo]

[![Travis Status][badge_build]][link-travis]
[![Coverage Status][badge_coverage]][link-scrutinizer]
Expand All @@ -16,7 +16,7 @@ Feel free to check out the [releases](https://github.com/ARCANEDEV/Agent/release

### Features

* Laravel `5.1` to `5.8` are Supported.
* Laravel `5.1` to `6.x` are Supported.
* Easy setup & configuration.
* Well tested (100% code coverage with maximum code quality).
* Made with :heart: & :coffee:.
Expand All @@ -41,7 +41,7 @@ If you discover any security related issues, please email arcanedev.maroc@gmail.
- [All Contributors][link-contributors]

[badge_license]: https://img.shields.io/packagist/l/arcanedev/agent.svg?style=flat-square
[badge_laravel]: https://img.shields.io/badge/Laravel-5.1%20to%205.8-orange.svg?style=flat-square
[badge_laravel]: https://img.shields.io/badge/Laravel-5.1%20to%206.x-orange.svg?style=flat-square
[badge_build]: https://img.shields.io/travis/ARCANEDEV/Agent.svg?style=flat-square
[badge_coverage]: https://img.shields.io/scrutinizer/coverage/g/ARCANEDEV/Agent.svg?style=flat-square
[badge_quality]: https://img.shields.io/scrutinizer/g/ARCANEDEV/Agent.svg?style=flat-square
Expand Down
11 changes: 5 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^7.1.3",
"arcanedev/support": "^4.5",
"mobiledetect/mobiledetectlib": "^2.8",
"jaybizzle/crawler-detect": "^1.2"
"php": "^7.2.0",
"arcanedev/support": "^5.2",
"piwik/device-detector": "^3.13"
},
"require-dev": {
"orchestra/testbench": "^3.8",
"phpunit/phpunit": "^7.0|^8.0"
"orchestra/testbench": "^4.0",
"phpunit/phpunit": "^8.0"
},
"autoload": {
"psr-4": {
Expand Down
20 changes: 20 additions & 0 deletions config/agent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

return [

/* -----------------------------------------------------------------
| Detectors
| -----------------------------------------------------------------
*/

'detectors' => [
'language' => [
'driver' => Arcanedev\Agent\Detectors\LanguageDetector::class,
],

'device' => [
'driver' => Arcanedev\Agent\Detectors\DeviceDetector::class,
],
],

];
Loading

0 comments on commit ded41ac

Please sign in to comment.