Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alterphp/components

PHP 5.3+ components over Symfony 2+
https://github.com/alterphp/components

Last synced: 2 months ago
JSON representation

PHP 5.3+ components over Symfony 2+

Awesome Lists containing this project

README

        

AlterPHP Components
====================

_Compatible with Symfony 2.1.x branch, not tested with further version._

Some components I use in my developments (mostly with Symfony2)

[![Build Status](https://secure.travis-ci.org/alterphp/components.png?branch=master)](http://travis-ci.org/alterphp/components)

Components list
--------------------

* AlterPHP\Component\Form\Type\ChoiceBitType

Based on Symfony2 components, this field type provides the way to __store
a collection of choices in a simple integer field/column__. It works the same
as _ChoiceType_ but takes and returns an integer that is the sum of each choice
bitWeight value.

bitWeight field is an integer indicating the power of two that is assigned to the choice and must be __unique__.

This component has following dependencies :
* Symfony

* AlterPHP\Component\Form\Type\EntityBitType

Based on Symfony2 components, this field type provides the way to __store
a collection of entities in a simple integer field/column__. It works the same
as _EntityType_ but takes and returns an integer that is the sum of each entity
bitWeight value.

bitWeight field is an integer indicating the power of two that is assigned to the entity and must be __unique__.

This component has following dependencies :
* Symfony
* Doctrine

* AlterPHP\Component\HttpFoundation\RedirectionResponseWithCookie

Based on Symfony2 components, this class provides a simple RedirectResponse object
with the ability to set cookies from the constructor.

This component has following dependencies :
* Symfony

Installation in a Symfony2 project
--------------------

Add following lines in the composer file :

"require": {
...,
"alterphp/components": "1.1.*"

Then run :

composer --dev install