2017 © Pedro Peláez
 

library croppicbundle

image

fbeen/croppicbundle

  • Friday, April 20, 2018
  • by fbeen
  • Repository
  • 1 Watchers
  • 0 Stars
  • 35 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

FbeenCroppicBundle

This bundle supplies a image upload from the croppic project (http://www.croppic.net/) in Symfony, (*1)

Features include:

  • very simple installation
  • todo

Installation

Using composer:, (*2)

1) Add "fbeen/croppicbundle": "dev-master" to the require section of your composer.json project file., (*3)

    "require": {
        ...
        "fbeen/croppicbundle": "dev-master"
    },

2) run composer update:, (*4)

$ composer update

3) Add the bundle to the app/AppKernel.php:, (*5)

        $bundles = array(
            ...
            new Fbeen\CroppicBundle\FbeenCroppicBundle(),
        );

4) Add Routes to app/config/routing.yml, (*6)

    fbeen_croppic:
        resource: "@FbeenCroppicBundle/Resources/config/routing.yml"
        prefix:   /

5) Update the database, (*7)

    php app/console doctrine:schema:update --force

6) Add configuration to app/config/config.yml, (*8)

    fbeen_croppic:
        upload:
            filepath: "%kernel.root_dir%/../web"
            original: "/uploads/original"
            cropped: "/uploads/cropped"

7) Create directories, (*9)

    cd web
    mkdir uploads
    cd uploads
    mkdir original
    mkdir cropped

Todo

  • how to use
  • from url back to basename
  • storage in a entity

The Versions

20/04 2018

dev-master

9999999-dev

  Sources   Download