2017 © Pedro Peláez
 

library losbase

Library with common classes for Los packages

image

los/losbase

Library with common classes for Los packages

  • Wednesday, August 12, 2015
  • by Lansoweb
  • Repository
  • 3 Watchers
  • 5 Stars
  • 1,588 Installations
  • PHP
  • 2 Dependents
  • 7 Suggesters
  • 1 Forks
  • 2 Open issues
  • 18 Versions
  • 1 % Grown

The README.md

LosBase

Build Status Latest Stable Version Total Downloads Coverage Status Scrutinizer Code Quality SensioLabs Insight Dependency Status, (*1)

Introduction

This module provides some utility classes for ZF2 projects and other LOS modules, (*2)

Requirements

Instalation

Instalation can be done with composer ou manually, (*3)

Installation with composer

For composer documentation, please refer to getcomposer.org., (*4)

  1. Enter your project directory
  2. Create or edit your composer.json file with following contents:, (*5)

    json { "minimum-stability": "dev", "require": { "los/losbase": "~2.5" } }, (*6)

  3. Run php composer.phar install
  4. Open my/project/directory/config/application.config.php and add LosBase to your modules

Installation without composer

  1. Clone this module LosBase to your vendor directory
  2. Enable it in your config/application.config.php like the step 4 in the previous section.

Usage

CRUD

The module provides a console interface for easily creating a CRUD module:, (*7)

php public/index.php create crud <modulename>

And it will create all necessary files and directories (config, controller, entity and service), (*8)

Controller

The AbstractCrudController provides some common operations for simples a CRUD: * list * view * add * edit * delete, (*9)

Doctrine types

  • UtcDateTime: converts the datetime to UTC before saving to the database
  • BrDateTime: converts the datetime to UTC before saving to the database and to BRST (UTC-3) when loading from database
  • BrPrice: handles brazillian price format (1.234,56) for databae operations

Doctrine Entities

  • 3 Traits: Id, Created and Updated
  • AbstractEntity already using the 3 basic traits above

Module

  • AbstractModule providing getAutoloaderConfig and getConfig basic methods

Doctrine Entity Service

  • AbstractEntity provides and abstract service class that handles saves and deletes for doctirne entities
  • Util: getUserAgent and getIP
  • Uuid: static method for UUID creation

Doctirne validators

  • NoEntityExists asserts that no entity with the specified field already exists during add operation
  • NoOtherEntityExists asserts that no other entity with the specified field already exists during edit operation

The Versions

12/08 2015

dev-master

9999999-dev

Library with common classes for Los packages

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

library base common los

31/07 2015

2.5.6

2.5.6.0

Library with common classes for Los packages

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

library base common los

17/06 2015

2.5.5

2.5.5.0

Library with common classes for Los packages

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

library base common los

23/05 2015

2.5.4

2.5.4.0

Library with common classes for Los packages

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

library base common los

01/04 2015

2.5.3

2.5.3.0

Library with common classes for Los packages

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

library base common los

01/02 2015

2.5.2

2.5.2.0

Library with common classes for Los packages

  Sources   Download

BSD-3-Clause

The Requires

 

library base common los

28/01 2015

2.5.1

2.5.1.0

Library with common classes for Los packages

  Sources   Download

BSD-3-Clause

The Requires

 

library base common los

19/01 2015

2.5.0

2.5.0.0

Library with common classes for Los packages

  Sources   Download

BSD-3-Clause

The Requires

 

library base common los

11/01 2015

2.1.x-dev

2.1.9999999.9999999-dev

Library with common classes for Los packages

  Sources   Download

BSD-3-Clause

The Requires

 

library base common los

01/01 2015

2.1.8

2.1.8.0

Library with common classes for Los packages

  Sources   Download

BSD-3-Clause

The Requires

 

library base common los

19/07 2014

2.1.7

2.1.7.0

Library with common classes for Los packages

  Sources   Download

BSD-3-Clause

The Requires

 

library base common los

16/07 2014

2.1.6

2.1.6.0

Library with common classes for Los packages

  Sources   Download

BSD-3-Clause

The Requires

 

library base common los

13/07 2014

2.1.5

2.1.5.0

Library with common classes for Los packages

  Sources   Download

BSD-3-Clause

The Requires

 

library base common los

25/06 2014

2.1.4

2.1.4.0

Library with common classes for Los packages

  Sources   Download

BSD-3-Clause

The Requires

 

library base common los

18/06 2014

2.1.3

2.1.3.0

Library with common classes for Los packages

  Sources   Download

BSD-3-Clause

The Requires

 

library base common los

18/06 2014

2.1.2

2.1.2.0

Library with common classes for Los packages

  Sources   Download

BSD-3-Clause

The Requires

 

library base common los

17/06 2014

2.1.1

2.1.1.0

Library with common classes for Los packages

  Sources   Download

BSD-3-Clause

The Requires

 

library base common los

15/06 2014

2.1.0

2.1.0.0

Library with common classes for Los packages

  Sources   Download

BSD-3-Clause

The Requires

 

library base common los