├── README.md └── composer.json /README.md: -------------------------------------------------------------------------------- 1 | # silverstripe3-php7 2 | Composer installable patch to get SilverStripe 3 running on PHP7 3 | 4 | Installs a patch (basically https://github.com/lekoala/silverstripe-327 and some minor changes by Mark Guinn, see https://github.com/markguinn/silverstripe-framework/tree/patch-3-327) via composer, so you can run SilverStripe 3.2+ on PHP7. 5 | 6 | Uses composer plugin https://github.com/netresearch/composer-patches-plugin to install the patch after a `composer install` 7 | 8 | ##Installation 9 | 10 | Simply run 11 | 12 | `composer require wernerkrauss/silverstripe-3-php7:^0.1.0`, 13 | 14 | then change your server to run PHP7 and enjoy the speed it provides. 15 | 16 | ## Note for upgrading to SilverStripe 3.6+ 17 | 18 | As SilverStripe 3.6 runs on PHP7 out of the box, this patch isn't needed any more. You can safely uninstall it and enjoy the speed of PHP7.0 19 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "wernerkrauss/silverstripe-3-php7", 3 | "type": "silverstripe-module", 4 | "require": { 5 | "netresearch/composer-patches-plugin": "^1.2.1" 6 | }, 7 | "extra": { 8 | "patches": { 9 | "silverstripe/framework": [ 10 | { 11 | "title": "[PATCH] applying lekoala's php7 fixes for SS 3.2+", 12 | "url": "https://gist.githubusercontent.com/wernerkrauss/5803756adf42fa4c270813e87399dee4/raw/7c8d23487d85bab8c2bb4ebdd6cbff96ef0155ac/ss3-php7.patch" 13 | } 14 | ] 15 | } 16 | } 17 | } 18 | --------------------------------------------------------------------------------