Skip to content

Commit

Permalink
Updated for PHP 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
suhock committed May 27, 2022
0 parents commit afc6aa7
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 0 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Five Two Foundation

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.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Remove Symfony Polyfill
Removes Symfony polyfills from a composer project by replacing the ``symfony/polyfill-*`` libraries with no implementation.

To use add ``fivetwo/remove-symfony-polyfill`` to the ``requires`` or ``require-dev`` section of your project's composer.json file.

```json
{
"requires": {
"php": "~7.2.0",
"vendor/library-requiring-symfony-polyfill": "*",
"fivetwo/remove-symfony-polyfill": "~7.2.0"
}
}
```

32 changes: 32 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "fivetwo/remove-symfony-polyfill",
"type": "library",
"description": "Remove Symfony polyfills",
"keywords": ["remove","symfony","polyfill"],
"license": "MIT",
"authors": [
{
"name": "Matthew Suhocki",
"email": "matt@fivetwo.org"
}
],
"required": {
"php": ">=7.2"
},
"replace": {
"symfony/polyfill-apcu": "*",
"symfony/polyfill-ctype": "*",
"symfony/polyfill-php72": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-intl-grapheme": "*",
"symfony/polyfill-intl-icu": "*",
"symfony/polyfill-intl-messageformatter": "*",
"symfony/polyfill-intl-idn": "*",
"symfony/polyfill-intl-normalizer": "*",
"symfony/polyfill-mbstring": "*",
"symfony/polyfill-util": "*",
"symfony/polyfill-uuid": "*",
"symfony/polyfill-xml": "*"
}
}

18 changes: 18 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit afc6aa7

Please sign in to comment.