diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 72f1021..ad157fc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,8 +12,8 @@ jobs: strategy: matrix: php_version: - - 7.4 - - 8.0 + - "8.0" + - "8.1" steps: - name: Checkout uses: actions/checkout@v2 diff --git a/LICENSE b/LICENSE index 631e18e..37e583c 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2017 https://github.com/wandersonwhcr/illuminate-romans +Copyright (c) 2022 https://github.com/wandersonwhcr/illuminate-romans 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 diff --git a/README.md b/README.md index 4a88939..1af5cc0 100644 --- a/README.md +++ b/README.md @@ -20,17 +20,17 @@ stable version. ```json { - "require": { - "wandersonwhcr/illuminate-romans": "^2.0" - } + "require": { + "wandersonwhcr/illuminate-romans": "^3.0" + } } ``` ## Usage -This package provides facades and helpers to use with Laravel projects. Also, -this package is provided as a Laravel Package to automatically configure -services inside application. +This package provides facades and helpers to use with Laravel projects. Also, it +was developed as a Laravel Package to automatically configure services inside +application. ### Facades @@ -66,11 +66,11 @@ test this package. ```bash docker-compose build -docker-compose run romans composer install -docker-compose run romans composer test +docker-compose run --rm romans composer install +docker-compose run --rm romans composer test ``` ## License -This package is opensource and available under license MIT described in +This package is opensource and available under MIT license described in [LICENSE](https://github.com/wandersonwhcr/laravel-romans/blob/main/LICENSE). diff --git a/composer.json b/composer.json index 20807dc..f73240b 100644 --- a/composer.json +++ b/composer.json @@ -1,55 +1,64 @@ { - "name": "wandersonwhcr/illuminate-romans", - "description": "Laravel Illuminate Romans Integration", - "type": "library", - "license": "MIT", - "keywords": ["laravel", "illuminate", "roman", "roman-number", "roman-numeral", "converter", "format", "validator"], - "require": { - "php": ">=8", - "wandersonwhcr/romans": "^1.3", - "illuminate/support": "^9" + "name": "wandersonwhcr/illuminate-romans", + "description": "Laravel Illuminate Romans Integration", + "type": "library", + "license": "MIT", + "keywords": [ + "laravel", + "illuminate", + "roman", + "roman-number", + "roman-numeral", + "converter", + "format", + "validator" + ], + "require": { + "php": ">=8.0", + "wandersonwhcr/romans": "^1.3", + "illuminate/support": "^9.0" + }, + "require-dev": { + "doctrine/instantiator": "^1.4", + "illuminate/container": "^9.0", + "illuminate/contracts": "^9.0", + "php-parallel-lint/php-parallel-lint": "^1.0", + "phpmd/phpmd": "^2.9", + "phpunit/phpunit": "9.5.*", + "sebastian/phpcpd": "6.0.*", + "squizlabs/php_codesniffer": "^3.5" + }, + "autoload": { + "psr-4": { + "Illuminate\\Romans\\": "src/" }, - "require-dev": { - "doctrine/instantiator": "^1.4", - "illuminate/container": "^9", - "illuminate/contracts": "^9", - "php-parallel-lint/php-parallel-lint": "^1.0", - "phpmd/phpmd": "^2.9", - "phpunit/phpunit": "9.5.*", - "sebastian/phpcpd": "6.0.*", - "squizlabs/php_codesniffer": "^3.5" - }, - "autoload": { - "psr-4": { - "Illuminate\\Romans\\": "src/" - }, - "files": [ - "src/helpers.php" - ] - }, - "autoload-dev": { - "psr-4": { - "IlluminateTest\\Romans\\": "test/" - } - }, - "scripts": { - "test": [ - "parallel-lint src", - "phpunit", - "phpcpd src", - "phpmd src text phpmd.xml", - "phpcs" - ] - }, - "extra": { - "laravel": { - "providers": [ - "Illuminate\\Romans\\Providers\\RomansProvider" - ], - "aliases": { - "IntToRoman": "Illuminate\\Romans\\Support\\Facades\\IntToRoman", - "RomanToInt": "Illuminate\\Romans\\Support\\Facades\\RomanToInt" - } - } + "files": [ + "src/helpers.php" + ] + }, + "autoload-dev": { + "psr-4": { + "IlluminateTest\\Romans\\": "test/" + } + }, + "scripts": { + "test": [ + "parallel-lint src", + "phpunit", + "phpcpd src", + "phpmd src text phpmd.xml", + "phpcs" + ] + }, + "extra": { + "laravel": { + "providers": [ + "Illuminate\\Romans\\Providers\\RomansProvider" + ], + "aliases": { + "IntToRoman": "Illuminate\\Romans\\Support\\Facades\\IntToRoman", + "RomanToInt": "Illuminate\\Romans\\Support\\Facades\\RomanToInt" + } } + } } diff --git a/composer.lock b/composer.lock index 0661a2a..bf95912 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "26edec0a4547f06d78cf29bc106eafe2", + "content-hash": "c53182958c7b2c045051d3eac8b727f7", "packages": [ { "name": "doctrine/inflector", @@ -99,16 +99,16 @@ }, { "name": "illuminate/collections", - "version": "v9.2.0", + "version": "v9.3.1", "source": { "type": "git", "url": "https://github.com/illuminate/collections.git", - "reference": "3b274e3bb842c14bc2fe3431061f884b475b51cc" + "reference": "3f4db0d7d1583a09b024e66370f30ee8b633f588" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/collections/zipball/3b274e3bb842c14bc2fe3431061f884b475b51cc", - "reference": "3b274e3bb842c14bc2fe3431061f884b475b51cc", + "url": "https://api.github.com/repos/illuminate/collections/zipball/3f4db0d7d1583a09b024e66370f30ee8b633f588", + "reference": "3f4db0d7d1583a09b024e66370f30ee8b633f588", "shasum": "" }, "require": { @@ -150,20 +150,20 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2022-02-22T15:05:08+00:00" + "time": "2022-02-28T12:33:28+00:00" }, { "name": "illuminate/conditionable", - "version": "v9.2.0", + "version": "v9.3.1", "source": { "type": "git", "url": "https://github.com/illuminate/conditionable.git", - "reference": "238b6e16190bffcc168770ffda96c238037739b6" + "reference": "56b4ba1166c264064bf63896f498a2bee320d16a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/conditionable/zipball/238b6e16190bffcc168770ffda96c238037739b6", - "reference": "238b6e16190bffcc168770ffda96c238037739b6", + "url": "https://api.github.com/repos/illuminate/conditionable/zipball/56b4ba1166c264064bf63896f498a2bee320d16a", + "reference": "56b4ba1166c264064bf63896f498a2bee320d16a", "shasum": "" }, "require": { @@ -196,20 +196,20 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2022-02-18T16:33:16+00:00" + "time": "2022-02-28T16:37:46+00:00" }, { "name": "illuminate/contracts", - "version": "v9.2.0", + "version": "v9.3.1", "source": { "type": "git", "url": "https://github.com/illuminate/contracts.git", - "reference": "bf4b3c254c49d28157645d01e4883b5951b1e1d0" + "reference": "7cf6c0c9fc14a1ea4a9860d6e69b52e513cb505f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/contracts/zipball/bf4b3c254c49d28157645d01e4883b5951b1e1d0", - "reference": "bf4b3c254c49d28157645d01e4883b5951b1e1d0", + "url": "https://api.github.com/repos/illuminate/contracts/zipball/7cf6c0c9fc14a1ea4a9860d6e69b52e513cb505f", + "reference": "7cf6c0c9fc14a1ea4a9860d6e69b52e513cb505f", "shasum": "" }, "require": { @@ -244,11 +244,11 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2022-02-22T14:45:39+00:00" + "time": "2022-03-03T14:08:19+00:00" }, { "name": "illuminate/macroable", - "version": "v9.2.0", + "version": "v9.3.0", "source": { "type": "git", "url": "https://github.com/illuminate/macroable.git", @@ -294,16 +294,16 @@ }, { "name": "illuminate/support", - "version": "v9.2.0", + "version": "v9.3.1", "source": { "type": "git", "url": "https://github.com/illuminate/support.git", - "reference": "ba4eda84d39039fffef3ae4d7ad9398b2330cf86" + "reference": "1f5af4696a75ff39312a7f47401ebaf5c2bca415" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/support/zipball/ba4eda84d39039fffef3ae4d7ad9398b2330cf86", - "reference": "ba4eda84d39039fffef3ae4d7ad9398b2330cf86", + "url": "https://api.github.com/repos/illuminate/support/zipball/1f5af4696a75ff39312a7f47401ebaf5c2bca415", + "reference": "1f5af4696a75ff39312a7f47401ebaf5c2bca415", "shasum": "" }, "require": { @@ -359,7 +359,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2022-02-22T14:46:48+00:00" + "time": "2022-03-03T15:14:04+00:00" }, { "name": "nesbot/carbon", @@ -563,7 +563,7 @@ }, { "name": "symfony/polyfill-mbstring", - "version": "v1.24.0", + "version": "v1.25.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", @@ -626,7 +626,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.24.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.25.0" }, "funding": [ { @@ -646,16 +646,16 @@ }, { "name": "symfony/polyfill-php80", - "version": "v1.24.0", + "version": "v1.25.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "57b712b08eddb97c762a8caa32c84e037892d2e9" + "reference": "4407588e0d3f1f52efb65fbe92babe41f37fe50c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/57b712b08eddb97c762a8caa32c84e037892d2e9", - "reference": "57b712b08eddb97c762a8caa32c84e037892d2e9", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/4407588e0d3f1f52efb65fbe92babe41f37fe50c", + "reference": "4407588e0d3f1f52efb65fbe92babe41f37fe50c", "shasum": "" }, "require": { @@ -709,7 +709,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.24.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.25.0" }, "funding": [ { @@ -725,20 +725,20 @@ "type": "tidelift" } ], - "time": "2021-09-13T13:58:33+00:00" + "time": "2022-03-04T08:16:47+00:00" }, { "name": "symfony/translation", - "version": "v6.0.3", + "version": "v6.0.5", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "71bb15335798f8c4da110911bcf2d2fead7a430d" + "reference": "e69501c71107cc3146b32aaa45f4edd0c3427875" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/71bb15335798f8c4da110911bcf2d2fead7a430d", - "reference": "71bb15335798f8c4da110911bcf2d2fead7a430d", + "url": "https://api.github.com/repos/symfony/translation/zipball/e69501c71107cc3146b32aaa45f4edd0c3427875", + "reference": "e69501c71107cc3146b32aaa45f4edd0c3427875", "shasum": "" }, "require": { @@ -804,7 +804,7 @@ "description": "Provides tools to internationalize your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/translation/tree/v6.0.3" + "source": "https://github.com/symfony/translation/tree/v6.0.5" }, "funding": [ { @@ -820,7 +820,7 @@ "type": "tidelift" } ], - "time": "2022-01-07T00:29:03+00:00" + "time": "2022-02-09T15:52:48+00:00" }, { "name": "symfony/translation-contracts", @@ -1175,29 +1175,30 @@ }, { "name": "doctrine/instantiator", - "version": "1.4.0", + "version": "1.4.1", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b" + "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/d56bf6102915de5702778fe20f2de3b2fe570b5b", - "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/10dcfce151b967d20fde1b34ae6640712c3891bc", + "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc", "shasum": "" }, "require": { "php": "^7.1 || ^8.0" }, "require-dev": { - "doctrine/coding-standard": "^8.0", + "doctrine/coding-standard": "^9", "ext-pdo": "*", "ext-phar": "*", - "phpbench/phpbench": "^0.13 || 1.0.0-alpha2", - "phpstan/phpstan": "^0.12", - "phpstan/phpstan-phpunit": "^0.12", - "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" + "phpbench/phpbench": "^0.16 || ^1", + "phpstan/phpstan": "^1.4", + "phpstan/phpstan-phpunit": "^1", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.22" }, "type": "library", "autoload": { @@ -1224,7 +1225,7 @@ ], "support": { "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/1.4.0" + "source": "https://github.com/doctrine/instantiator/tree/1.4.1" }, "funding": [ { @@ -1240,20 +1241,20 @@ "type": "tidelift" } ], - "time": "2020-11-10T18:47:58+00:00" + "time": "2022-03-03T08:28:38+00:00" }, { "name": "illuminate/container", - "version": "v9.2.0", + "version": "v9.3.1", "source": { "type": "git", "url": "https://github.com/illuminate/container.git", - "reference": "b249d566e8f93b9255d84f4c06a8cc7db24c900c" + "reference": "66f9049b19fb34e74134c6eeff92a442cee068e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/container/zipball/b249d566e8f93b9255d84f4c06a8cc7db24c900c", - "reference": "b249d566e8f93b9255d84f4c06a8cc7db24c900c", + "url": "https://api.github.com/repos/illuminate/container/zipball/66f9049b19fb34e74134c6eeff92a442cee068e5", + "reference": "66f9049b19fb34e74134c6eeff92a442cee068e5", "shasum": "" }, "require": { @@ -1291,32 +1292,33 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2022-02-05T18:02:43+00:00" + "time": "2022-03-03T14:08:19+00:00" }, { "name": "myclabs/deep-copy", - "version": "1.10.2", + "version": "1.11.0", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220" + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/776f831124e9c62e1a2c601ecc52e776d8bb7220", - "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614", + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614", "shasum": "" }, "require": { "php": "^7.1 || ^8.0" }, - "replace": { - "myclabs/deep-copy": "self.version" + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3,<3.2.2" }, "require-dev": { - "doctrine/collections": "^1.0", - "doctrine/common": "^2.6", - "phpunit/phpunit": "^7.1" + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" }, "type": "library", "autoload": { @@ -1341,7 +1343,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.10.2" + "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0" }, "funding": [ { @@ -1349,7 +1351,7 @@ "type": "tidelift" } ], - "time": "2020-11-13T09:40:50+00:00" + "time": "2022-03-03T13:19:32+00:00" }, { "name": "nikic/php-parser", @@ -1944,16 +1946,16 @@ }, { "name": "phpunit/php-code-coverage", - "version": "9.2.13", + "version": "9.2.14", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "deac8540cb7bd40b2b8cfa679b76202834fd04e8" + "reference": "9f4d60b6afe5546421462b76cd4e633ebc364ab4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/deac8540cb7bd40b2b8cfa679b76202834fd04e8", - "reference": "deac8540cb7bd40b2b8cfa679b76202834fd04e8", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/9f4d60b6afe5546421462b76cd4e633ebc364ab4", + "reference": "9f4d60b6afe5546421462b76cd4e633ebc364ab4", "shasum": "" }, "require": { @@ -2009,7 +2011,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.13" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.14" }, "funding": [ { @@ -2017,7 +2019,7 @@ "type": "github" } ], - "time": "2022-02-23T17:02:38+00:00" + "time": "2022-02-28T12:38:02+00:00" }, { "name": "phpunit/php-file-iterator", @@ -3574,16 +3576,16 @@ }, { "name": "symfony/dependency-injection", - "version": "v6.0.3", + "version": "v6.0.5", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "bf53dbf6e8f3eec14f44c53fa4c3b4905ab19ee4" + "reference": "481846cbd2441cf3444340ee53486fc24da525bd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/bf53dbf6e8f3eec14f44c53fa4c3b4905ab19ee4", - "reference": "bf53dbf6e8f3eec14f44c53fa4c3b4905ab19ee4", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/481846cbd2441cf3444340ee53486fc24da525bd", + "reference": "481846cbd2441cf3444340ee53486fc24da525bd", "shasum": "" }, "require": { @@ -3642,7 +3644,7 @@ "description": "Allows you to standardize and centralize the way objects are constructed in your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/dependency-injection/tree/v6.0.3" + "source": "https://github.com/symfony/dependency-injection/tree/v6.0.5" }, "funding": [ { @@ -3658,7 +3660,7 @@ "type": "tidelift" } ], - "time": "2022-01-26T17:23:29+00:00" + "time": "2022-02-24T10:01:27+00:00" }, { "name": "symfony/deprecation-contracts", @@ -3729,16 +3731,16 @@ }, { "name": "symfony/filesystem", - "version": "v6.0.3", + "version": "v6.0.5", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "6ae49c4fda17322171a2b8dc5f70bc6edbc498e1" + "reference": "6646c13f787057d64701a3a0235cf9567c6ccbbd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/6ae49c4fda17322171a2b8dc5f70bc6edbc498e1", - "reference": "6ae49c4fda17322171a2b8dc5f70bc6edbc498e1", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/6646c13f787057d64701a3a0235cf9567c6ccbbd", + "reference": "6646c13f787057d64701a3a0235cf9567c6ccbbd", "shasum": "" }, "require": { @@ -3772,7 +3774,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v6.0.3" + "source": "https://github.com/symfony/filesystem/tree/v6.0.5" }, "funding": [ { @@ -3788,11 +3790,11 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:55:41+00:00" + "time": "2022-02-28T07:42:30+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.24.0", + "version": "v1.25.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", @@ -3854,7 +3856,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.24.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.25.0" }, "funding": [ { @@ -3874,7 +3876,7 @@ }, { "name": "symfony/polyfill-php81", - "version": "v1.24.0", + "version": "v1.25.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php81.git", @@ -3933,7 +3935,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.24.0" + "source": "https://github.com/symfony/polyfill-php81/tree/v1.25.0" }, "funding": [ { @@ -4148,8 +4150,8 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=8" + "php": ">=8.0" }, "platform-dev": [], - "plugin-api-version": "2.0.0" + "plugin-api-version": "2.2.0" } diff --git a/docker-compose/Dockerfile b/docker-compose/Dockerfile index 8ab7d66..af3390f 100644 --- a/docker-compose/Dockerfile +++ b/docker-compose/Dockerfile @@ -1,10 +1,10 @@ -ARG PHP_VERSION +ARG PHP_VERSION=8.0 FROM php:${PHP_VERSION}-cli-alpine ENV COMPOSER_CACHE_DIR /tmp -COPY --from=composer:2.0 /usr/bin/composer /usr/bin/composer +COPY --from=composer:2.2 /usr/bin/composer /usr/bin/composer RUN find /usr/src -type f -name 'php.tar*' -delete \ && apk add unzip