mirror of
https://github.com/Intervention/image.git
synced 2025-08-21 13:11:18 +02:00
textual improvments of the documentation
This commit is contained in:
20
README.md
20
README.md
@@ -1,27 +1,34 @@
|
|||||||
# Intervention Image Class
|
# Intervention Image Class
|
||||||
|
|
||||||
Image handling and manipulation based on PHP GD library. Made to work with **Laravel 4** but runs also standalone.
|
Intervention Image Class is an image handling and manipulation wrapper library using **PHP GD library**. The class is written to make PHP image manipulating more easier and expressive.
|
||||||
|
|
||||||
|
The library requires at least **PHP version 5.3** and comes with **Laravel 4** Facades and Service Providers to simplify the optional framework integration.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
You can install this Image class quick and easy with Composer.
|
You can install this Image class quickly and easily with Composer.
|
||||||
|
|
||||||
Require the package via Composer in your `composer.json`.
|
Require the package via Composer in your `composer.json`.
|
||||||
|
|
||||||
"intervention/image": "dev-master"
|
"intervention/image": "dev-master"
|
||||||
|
|
||||||
Run Composer to update the new requirement.
|
Run Composer to install or update the new requirement.
|
||||||
|
|
||||||
$ composer update
|
$ composer update
|
||||||
|
|
||||||
The Image class are built to work with the Laravel 4 Framework. The integration is done in seconds.
|
Now you are able to require the `vendor/autoload.php` file to PSR-0 autoload the library.
|
||||||
|
|
||||||
|
### Laravel 4 Integration
|
||||||
|
|
||||||
|
The Image class also has optional Laravel 4 support. The integration into the framework is done in seconds.
|
||||||
|
|
||||||
Open your Laravel config file `config/app.php` and add the following lines.
|
Open your Laravel config file `config/app.php` and add the following lines.
|
||||||
|
|
||||||
In the `$providers` array add the service providers for this package.
|
In the `$providers` array add the service providers for this package.
|
||||||
|
|
||||||
'providers' => array(
|
'providers' => array(
|
||||||
...
|
|
||||||
|
[...]
|
||||||
|
|
||||||
'Intervention\Image\ImageServiceProvider'
|
'Intervention\Image\ImageServiceProvider'
|
||||||
),
|
),
|
||||||
@@ -30,7 +37,8 @@ In the `$providers` array add the service providers for this package.
|
|||||||
Add the facade of this package to the `$aliases` array.
|
Add the facade of this package to the `$aliases` array.
|
||||||
|
|
||||||
'aliases' => array(
|
'aliases' => array(
|
||||||
...
|
|
||||||
|
[...]
|
||||||
|
|
||||||
'Image' => 'Intervention\Image\Facades\Image'
|
'Image' => 'Intervention\Image\Facades\Image'
|
||||||
),
|
),
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "intervention/image",
|
"name": "intervention/image",
|
||||||
"description": "Image handling and manipulation for Laravel 4",
|
"description": "Image handling and manipulation library with support for Laravel 4 integration",
|
||||||
"homepage": "https://github.com/Intervention/image",
|
"homepage": "https://github.com/Intervention/image",
|
||||||
"keywords": ["image", "gd", "laravel"],
|
"keywords": ["image", "gd", "laravel"],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
Reference in New Issue
Block a user