2017 © Pedro Peláez
 

library php-utilities

php tools with data container, collection objects, yaml config loader and timer

image

asm/php-utilities

php tools with data container, collection objects, yaml config loader and timer

  • Sunday, June 11, 2017
  • by asm
  • Repository
  • 3 Watchers
  • 9 Stars
  • 7,081 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 12 Versions
  • 5 % Grown

The README.md

php-utilities

Build Status Scrutinizer Code Quality Code Coverage SensioLabsInsight, (*1)

About

This library is all about helping with the common little problems like having a type of object to inherit from with an internal data storage to turn to a json or array, ..., (*2)

Usage

A lot of examples on how to use the classes can be found in the UnitTests. The whole collection is extensively tested and therefore quite stable. Feel free to contribute, suggest changes or help make it better., (*3)

Contents

You'll get following groups of classes which are interdependent, (*4)

Data

This part consists of two distinct classes: * Data is a data store where you can easily store and retrieve data. * DataCollection ist a container to house items like objects, iterable., (*5)

Config

Here you get a static factory which is able to produce three types of configuration objects, based on Data class. All config objects take yaml files as source and provide easy access via get/set methods. See UnitTests for examples. Available types are: * ConfigDefault - basic config object, stores the yaml content "as is", provides get/set. * ConfigEnv - provides the possibility to get an environment-merged config. Based on the currently provided env, you'll have e.g. prod -> dev merged, with prod node as a master. * ConfigTimer is a specialised for of config to provide pre-generated DateTime objects for the Timer class., (*6)

Configs now also support the "imports" syntax from symfony configs., (*7)

imports:
    - { resource: defaults.yml }

There is the possibility to use a "default" node in all configs, except timers, which will be used as merge-base. Imported configs will be treated just like the "default" node and also become the base for merging. The order of merges is import -> default -> prod -> $env., (*8)

Timer

Provides functionality to check if there's a current holiday, has configurable "timers" to check uf e.g. your hotline should be available etc. Extensive examples can be found within both, the TestData and UnitTests :-), (*9)

Test

TestData is just a helper for providing configurations for either Config and Timer. Have a look for YAML config examples., (*10)

The Versions

11/06 2017

dev-feature/value_objects_and_object_stores

dev-feature/value_objects_and_object_stores https://github.com/maschmann/php-utilities

php tools with data container, collection objects, yaml config loader and timer

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marc Aschmann

15/02 2017

dev-master

9999999-dev https://github.com/maschmann/php-utilities

php tools with data container, collection objects, yaml config loader and timer

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marc Aschmann

15/02 2017

v3.0.0

3.0.0.0 https://github.com/maschmann/php-utilities

php tools with data container, collection objects, yaml config loader and timer

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marc Aschmann

17/12 2015

v2.0.4

2.0.4.0 https://github.com/maschmann/php-utilities

php tools with data container, collection objects, yaml config loader and timer

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marc Aschmann

22/07 2015

v2.0.3

2.0.3.0 https://github.com/maschmann/php-utilities

php tools with data container, collection objects, yaml config loader and timer

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marc Aschmann

27/04 2015

dev-parameter-checks-refactoring

dev-parameter-checks-refactoring https://github.com/maschmann/php-utilities

php tools with data container, collection objects, yaml config loader and timer

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marc Aschmann

27/04 2015

v2.0.2

2.0.2.0 https://github.com/maschmann/php-utilities

php tools with data container, collection objects, yaml config loader and timer

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marc Aschmann

24/04 2015

v2.0.1

2.0.1.0 https://github.com/maschmann/php-utilities

php tools with data container, collection objects, yaml config loader and timer

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marc Aschmann

28/03 2015

v2.0.0

2.0.0.0 https://github.com/maschmann/php-utilities

php tools with data container, collection objects and timer

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marc Aschmann

27/03 2015

v1.2.0

1.2.0.0 https://github.com/maschmann/php-utilities

php tools with data container, collection objects and timer

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marc Aschmann

30/12 2014

v1.1.0

1.1.0.0 https://github.com/maschmann/php-utilities

php tools with data container, collection objects and timer

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marc Aschmann

26/08 2014

v1.0.0

1.0.0.0 https://github.com/maschmann/php-utilities

php tools with data container, collection objects and timer

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marc Aschmann