Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/endel/php-code-downgrade
Make your PHP 5.4+ codebase compatible with PHP 5.3.
https://github.com/endel/php-code-downgrade
downgrade php php-5
Last synced: about 2 months ago
JSON representation
Make your PHP 5.4+ codebase compatible with PHP 5.3.
- Host: GitHub
- URL: https://github.com/endel/php-code-downgrade
- Owner: endel
- License: mit
- Created: 2014-12-26T06:19:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-20T21:18:55.000Z (over 8 years ago)
- Last Synced: 2024-07-13T07:33:11.301Z (2 months ago)
- Topics: downgrade, php, php-5
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 46
- Watchers: 7
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
php-code-downgrade
===Tool to downgrade your PHP codebase from PHP 5.4+ to PHP 5.3. Built on top of
[galapagos](https://github.com/endel/galapagos).Consider including
[php5.3-compatibility](https://github.com/packfire/php5.3-compatibility) package
in your project, which includes `JsonSerializable` and
`SessionHandlerInterface`.You may have to manually fix some remaining problems, usually they're quite simple.
Why?
---Use it when you have a PHP 5.4+ codebase and just can't upgrade your client's
infrastructure.Features
---- Convert new array syntax to old one. (`[1,2,3]` to `array(1,2,3)`)
- Inject traits code into classes that use them.
- Analyze every vendor's `composer.json` and convert them if it's needed
- Downgrade function calls with different signature.
* `stream_context_create`
* `session_set_save_handler`
- Custom node transformationsUsage
---```
./php-code-downgrade [path-to-downgrade]
```Using custom node transformations:
```
./php-code-downgrade [path-to-downgrade] -t transformations/phalanger
```License
---MIT