From 7b2f5bbdbdac564e89a50c3b9b6d597c92b9fb08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dennis=20Stu=CC=88cken?= Date: Mon, 14 Dec 2015 16:18:46 +0100 Subject: [PATCH] readme extended --- README.md | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index efe5240..9020047 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,40 @@ php7ify is a project that brings new php7 classes and exceptions to php 5.x -# usage +[![Build Status](https://travis-ci.org/dstuecken/php7ify.svg)](https://travis-ci.org/dstuecken/php7ify) +[![License](https://poser.pugx.org/dstuecken/php7ify/license)](https://packagist.org/packages/dstuecken/php7ify) +[![Latest Stable Version](https://poser.pugx.org/dstuecken/php7ify/v/stable)](https://packagist.org/packages/dstuecken/php7ify) +[![Latest Unstable Version](https://poser.pugx.org/dstuecken/php7ify/v/unstable)](https://packagist.org/packages/dstuecken/php7ify) -Just use the new \Throwable interface in your php 5 project, or catch an \ErrorException. +## Requirements + +* PHP 5.3 + +## Installation + +### Using Composer + +To install php7ify with composer, just add the following to your composer.json file: + +```json +{ + "require": { + "dstuecken/php7ify": "1.0" + } +} +``` +or by running the following command: + +```shell +composer require dstuecken/php7ify ``` + +# Usage + +Just use the new \Throwable interface in your php 5 project, or catch an \ErrorException. + +```php try { mysql_query();