PHPackages                             satoripophq/crop-images-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. satoripophq/crop-images-bundle

ActiveSymfony-bundle[Image &amp; Media](/categories/media)

satoripophq/crop-images-bundle
==============================

Symfony SatoripopImagesBundle

1.0.0.x-dev(8y ago)0541MITPHPPHP &gt;=5.3.2

Since Nov 15Pushed 8y agoCompare

[ Source](https://github.com/satoripophq/crop-images-bundle)[ Packagist](https://packagist.org/packages/satoripophq/crop-images-bundle)[ Docs](http://www.satoripop.com)[ RSS](/packages/satoripophq-crop-images-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (8)Versions (2)Used By (0)

Getting Started With SatoripopImagesBundle
==========================================

[](#getting-started-with-satoripopimagesbundle)

This simplistic bundles provides a wrapping layer for the Imagine Class and implements simple tools for image uploads and thumbnail generation.

##### Quick access: [Prerequisites](https://github.com/Satoripop/SatoripopImagesBundle#prerequisites) - [Installation](https://github.com/Satoripop/SatoripopImagesBundle#installation)

[](#quick-access-prerequisites---installation)

Prerequisites
-------------

[](#prerequisites)

This version of the bundle requires Symfony 2.1+. If you are using Symfony 2.0.x, please use the 1.2.x releases of the bundle.

### Translations

[](#translations)

If you wish to use default texts provided in this bundle, you have to make sure you have translator enabled in your config.

```
# app/config/config.yml

framework:
    translator: ~
```

For more information about translations, check [Symfony documentation](http://symfony.com/doc/current/book/translation.html).

Installation
------------

[](#installation)

### Step 1: Download SatoripopImagesBundle using composer

[](#step-1-download-satoripopimagesbundle-using-composer)

Add SatoripopImagesBundle in your composer.json:

```
{
    "require": {
        "Satoripophq/crop-images-bundle": "dev-master"
    }
}
```

Now tell composer to download the bundle by running the command:

```
$ php composer.phar update Satoripophq/crop-images-bundle
```

Composer will install the bundle to your project's `vendor/Satoripop` directory.

### Step 2: Create your Image class

[](#step-2-create-your-image-class)

The goal of this bundle is to persist some `Image` class to a MySql database. Your first job, then, is to create the `Image` class for your application. This class can look and act however you want: add any properties or methods you find useful. This is *your* `Image` class.

The bundle provides base classes which are already mapped for most fields to make it easier to create your entity. Here is an example on how you use it:

**Warning:**

> When you extend from the mapped superclass provided by the bundle, don't redefine the mapping for the other fields as it is provided by the bundle.

Your `Image` class can live inside any bundle in your application. For example, if you work at "Acme" company, then you might create a bundle called `AcmeImagesBundle`and place your `Image` class in it.

```
