2017 © Pedro PelĂĄez
 

library php-tools

Several PHP 7 tools to make life a little easier

image

guillegf/php-tools

Several PHP 7 tools to make life a little easier

  • Tuesday, March 28, 2017
  • by GuilleGF
  • Repository
  • 1 Watchers
  • 0 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

PHP-Tools

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

Several PHP 7 tools to make life a little easier, (*2)

Installation

composer require guillegf/php-tools

Enum

PHP Enum implementation inspired from SplEnum and based on project myclabs/php-enum because it is not integrated to PHP, you have to install it separately., (*3)

Using an enum instead of class constants provides the following advantages:, (*4)

  • You can type-hint: function setAction(Action $action) {
  • You can enrich the enum with methods (e.g. format, parse, 
)
  • You can extend the enum to add new values (make your enum final to prevent it)
  • You can get a list of all the possible values (see below)

This Enum class is not intended to replace class constants, but only to be used when it makes sense., (*5)

See documentation, (*6)

Collection

PHP EntityCollection implementation inspired on ArrayCollection from project doctrine/collections., (*7)

See documentation, (*8)

The Versions

28/03 2017

dev-master

9999999-dev https://github.com/GuilleGF/PHP-Tools

Several PHP 7 tools to make life a little easier

  Sources   Download

MIT

The Requires

  • ext-reflection *
  • php ^7.0

 

The Development Requires

by Guillermo GonzĂĄlez

php collection enum tools camelcase

28/03 2017

1.1.0

1.1.0.0 https://github.com/GuilleGF/PHP-Tools

Several PHP 7 tools to make life a little easier

  Sources   Download

MIT

The Requires

  • php ^7.0
  • ext-reflection *

 

The Development Requires

by Guillermo GonzĂĄlez

php collection enum tools camelcase

28/03 2017

1.0.0

1.0.0.0 https://github.com/GuilleGF/PHP-Tools

Several PHP 7 tools to make life a little easier

  Sources   Download

MIT

The Requires

  • php ^7.0
  • ext-reflection *

 

The Development Requires

by Guillermo GonzĂĄlez

php collection enum tools camelcase