diff --git a/LICENSE.md b/LICENSE.md index 1ccb1ac..0b8e8c3 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015-2019 | ARCANEDEV - Hasher +Copyright (c) 2015-2020 | ARCANEDEV - Hasher Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 30772b7..81f322d 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Feel free to check out the [releases](https://github.com/ARCANEDEV/Hasher/releas * Flexible hash manager. * Well documented & IDE Friendly. * Well tested with maximum code quality. - * Laravel `5.x | 6.x` are supported. + * Laravel `5.x | 6.x | 7.x` are supported. * Made with :heart: & :coffee:. ## Table of contents @@ -49,7 +49,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/hasher.svg?style=flat-square -[badge_laravel]: https://img.shields.io/badge/For%20Laravel-5.x%20|%206.x-orange.svg?style=flat-square +[badge_laravel]: https://img.shields.io/badge/For%20Laravel-5.x%20to%207.x-orange.svg?style=flat-square [badge_build]: https://img.shields.io/github/workflow/status/ARCANEDEV/Hasher/run-tests?style=flat-square [badge_coverage]: https://img.shields.io/scrutinizer/coverage/g/ARCANEDEV/Hasher.svg?style=flat-square [badge_quality]: https://img.shields.io/scrutinizer/g/ARCANEDEV/Hasher.svg?style=flat-square diff --git a/_docs/0-Home.md b/_docs/0-Home.md index 672dcec..47bd66f 100644 --- a/_docs/0-Home.md +++ b/_docs/0-Home.md @@ -8,7 +8,7 @@ The Hasher package provides a flexible hash manager for Laravel. * Flexible hash manager. * Well documented & IDE Friendly. * Well tested with maximum code quality. - * Laravel `5.0` to `6.0` are supported. + * Laravel `5.x | 6.x | 7.x` are supported. * Made with :heart: & :coffee:. ## Table of contents diff --git a/_docs/1-Installation-and-Setup.md b/_docs/1-Installation-and-Setup.md index cee6a88..036ce1a 100644 --- a/_docs/1-Installation-and-Setup.md +++ b/_docs/1-Installation-and-Setup.md @@ -10,6 +10,7 @@ | Hasher | Laravel | |:-------------------------------|:--------------------------------------------------------------------------------------------------------------------| +| ![Hasher v4.x][hasher_4_x] | ![Laravel v7.x][laravel_7_x] | | ![Hasher v3.x][hasher_3_x] | ![Laravel v6.x][laravel_6_x] | | ![Hasher v2.5.x][hasher_2_5_x] | ![Laravel v5.8][laravel_5_8] | | ![Hasher v2.4.x][hasher_2_4_x] | ![Laravel v5.7][laravel_5_7] | @@ -18,6 +19,7 @@ | ![Hasher v2.1.x][hasher_2_1_x] | ![Laravel v5.4][laravel_5_4] | | ![Hasher v2.0.x][hasher_2_0_x] | ![Laravel v5.0][laravel_5_0] ![Laravel v5.1][laravel_5_1] ![Laravel v5.2][laravel_5_2] ![Laravel v5.3][laravel_5_3] | +[laravel_7_x]: https://img.shields.io/badge/v7.x-supported-brightgreen.svg?style=flat-square "Laravel v7.x" [laravel_6_x]: https://img.shields.io/badge/v6.x-supported-brightgreen.svg?style=flat-square "Laravel v6.x" [laravel_5_8]: https://img.shields.io/badge/v5.8-supported-brightgreen.svg?style=flat-square "Laravel v5.8" [laravel_5_7]: https://img.shields.io/badge/v5.7-supported-brightgreen.svg?style=flat-square "Laravel v5.7" @@ -29,6 +31,7 @@ [laravel_5_1]: https://img.shields.io/badge/v5.1-supported-brightgreen.svg?style=flat-square "Laravel v5.1" [laravel_5_0]: https://img.shields.io/badge/v5.0-supported-brightgreen.svg?style=flat-square "Laravel v5.0" +[hasher_4_x]: https://img.shields.io/badge/version-4.*-blue.svg?style=flat-square "Hasher v4.*" [hasher_3_x]: https://img.shields.io/badge/version-3.*-blue.svg?style=flat-square "Hasher v3.*" [hasher_2_5_x]: https://img.shields.io/badge/version-2.5.*-blue.svg?style=flat-square "Hasher v2.5.*" [hasher_2_4_x]: https://img.shields.io/badge/version-2.4.*-blue.svg?style=flat-square "Hasher v2.4.*" diff --git a/composer.json b/composer.json index 0a2574c..25fc0ae 100644 --- a/composer.json +++ b/composer.json @@ -16,14 +16,13 @@ "type": "library", "license": "MIT", "require": { - "php": ">=7.2.0", - "arcanedev/support": "^5.1.1", + "php": "^7.2.5", + "arcanedev/support": "^7.0", "hashids/hashids": "^4.0" }, "require-dev": { - "orchestra/testbench": "^4.0.0", - "phpunit/phpunit": "^8.0", - "phpunit/phpcov": "^6.0" + "orchestra/testbench": "^5.0", + "phpunit/phpunit": "^8.5|^9.0" }, "autoload": { "psr-4": { @@ -42,5 +41,7 @@ "Arcanedev\\Hasher\\HasherServiceProvider" ] } - } + }, + "minimum-stability": "dev", + "prefer-stable": true } diff --git a/src/HasherServiceProvider.php b/src/HasherServiceProvider.php index 749897b..fadf3f2 100644 --- a/src/HasherServiceProvider.php +++ b/src/HasherServiceProvider.php @@ -4,6 +4,7 @@ namespace Arcanedev\Hasher; +use Arcanedev\Hasher\Contracts\HashManager as HashManagerContract; use Arcanedev\Support\Providers\PackageServiceProvider as ServiceProvider; use Illuminate\Contracts\Support\DeferrableProvider; @@ -41,7 +42,7 @@ public function register(): void $this->registerConfig(); - $this->singleton(Contracts\HashManager::class, HashManager::class); + $this->singleton(HashManagerContract::class, HashManager::class); } /** @@ -49,7 +50,9 @@ public function register(): void */ public function boot(): void { - $this->publishConfig(); + if ($this->app->runningInConsole()) { + $this->publishConfig(); + } } /** @@ -60,7 +63,7 @@ public function boot(): void public function provides(): array { return [ - Contracts\HashManager::class, + HashManagerContract::class, ]; } }