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

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Mar 26, 2016
1 parent 3fdb6de commit f7a1193
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ You can convert an entire directory with PHP 7 code with a the console command:
$ php7to5 convert {$directoryWithPHP7Code} {$destinationWithPHP5Code}
```

Currently this package converts PHP 7 code to equivalent PHP 5 code by:
- removing scalar type hints
- removing return type hints
- removing the strict type declaration
- replacing the spaceship operator by an equivalent PHP 5 code
- replacing null coalesce statements by equivalent PHP 5 code
- converting anonymous classes to regular classes

To make sure the converted code works we higly recommend running your automated tests against the converted code.


Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects [on our website](https://spatie.be/opensource).

## Installation
Expand All @@ -33,7 +44,6 @@ If you want to [integrate the package in your own code](#programmatically-conver
``` bash
$ composer require spatie/7to5
```

## Using the console command

This package provides a console command `php7to5` to convert files and directories.
Expand Down

0 comments on commit f7a1193

Please sign in to comment.