Skip to content
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.

spatie/7to5

 
 

Repository files navigation

WORK IN PROGRESS

Convert PHP 7 code to PHP 5 code

Latest Version on Packagist Software License Build Status SensioLabsInsight Quality Score Total Downloads

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.

Install

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

Usage

$converter = new Spatie\Php7to5\Converter($pathToPhp7File);
$converter->saveAsPhp5($pathWherePhp5CodeShouldBeSaved);

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

Original idea: Jens Segers Emotional support: Hannes Van De Vreken

About Spatie

Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

License

The MIT License (MIT). Please see License File for more information.