This package can convert PHP 7 code to PHP 5.
Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.
Note: Remove this paragraph if you are building a public package
This package is custom built for Spatie projects and is therefore not registered on packagist.
In order to install it via composer you must specify this extra repository in composer.json
:
"repositories": [ { "type": "composer", "url": "https://satis.spatie.be/" } ]
You can install the package via composer:
$ composer require spatie/7to5
$converter = new Spatie\Php7to5\Converter($pathToPhp7File);
$converter->saveAsPhp5($pathWherePhp5CodeShouldBeSaved);
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Original idea: Jens Segers Emotional support: Hannes Van De Vreken
Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.
The MIT License (MIT). Please see License File for more information.