proyecto404/util-bundle

Utility and base classes used by 404's projects

This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.

Installs: 301

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Type:symfony-bundle

dev-master / 1.0.10.x-dev 2016-11-08 19:58 UTC

This package is not auto-updated.

Last update: 2024-01-20 14:26:11 UTC


README

##Installation

You can install this bundle using composer

$ php composer.phar require proyecto404/util-bundle "dev-master"

or add the package to your composer.json file directly.

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

After you have installed the package, you just need to add the bundle to your AppKernel.php file:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Proyecto404\UtilBundle\Proyecto404UtilBundle(),
    );
}

##Contents

  • Command:
    • ExecuteSqlCommand: Symfony console command that executes SQL files in doctrine's default manager.
  • Controller:
    • ControllerBase: Base class with convenient utility methods for controllers.
  • Form:
    • FormUtil: Utility class for forms.
    • ValuedPasswordType: Password type that maintains value like other inputs.
  • Http:
    • JsonResponse: Better Json response object.
  • Lib:
    • Check: Implements Design by Contract.
    • Enum: Base class for enum types.
    • GeopositionHelper: Helper class with geoposition utility methods.
    • PaginationInfo: Represents pagination information of set of data.
  • Model\Builder:
    • EntityBuilder: Base class for entity builders.
  • Model\Form:
    • EntityBuilderType: Base class for all EntityBuilder's form types.
  • Repository:
    • EntityRepositoryInterface: Interface for domain entities repositories.
    • OrderDirections: Enum class with ordering directions.
    • RepositoryHelper: Helper class with utility methods for repositories.
  • Security\Encoder:
    • Md5NoSaltEncoder: Encode a password in md5 without use the salt.

License

This bundle is under the MIT license. See the complete license in the bundle LICENSE file.