2017 © Pedro Peláez
 

library library

The PHP library package of Les Ateliers Pierrot.

image

atelierspierrot/library

The PHP library package of Les Ateliers Pierrot.

  • Friday, January 1, 2016
  • by picas
  • Repository
  • 2 Watchers
  • 6 Stars
  • 1,119 Installations
  • HTML
  • 18 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 18 Versions
  • 0 % Grown

The README.md

PHP Library

Build Status documentation The PHP library package of Les Ateliers Pierrot, (*1)

Presentation

This package is a set of PHP basic classes commonly used (in our work) to facilitate other developments. It contains some global classes to extend to start on a robuste base, some useful helpers for some methods often used etc. For a full review of what the library embeds, have a look at the src/Library/ directory contents., (*2)

This package is based on our PHP Patterns package., (*3)

Usage

First notes about standards

As for all our work, we try to follow the coding standards and naming rules most commonly in use:, (*4)

Knowing that, all classes are named and organized in an architecture to allow the use of the standard SplClassLoader., (*5)

The whole package is embedded in the Library namespace., (*6)

In this README documentation, the key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119., (*7)

Installation

You can use this package in your work in many ways. Note that it depends on the external package PHP Patterns., (*8)

First, you can clone the GitHub repository and include it "as is" in your poject:, (*9)

https://github.com/atelierspierrot/patterns
https://github.com/atelierspierrot/library

You can also download an archive from Github., (*10)

Then, to use the package classes, you just need to register the Library AND the Patterns namespace directory using the SplClassLoader or any other custom autoloader (if required, a copy of the SplClassLoader is proposed in the package):, (*11)

require_once '.../src/SplClassLoader.php';
$patternsLoader = new SplClassLoader('Patterns', '/path/to/patterns/package/src');
$patternsLoader->register();
$libraryLoader = new SplClassLoader('Library', '/path/to/package/src');
$libraryLoader->register();

If you are a Composer user, just add the package to your requirements in your composer.json:, (*12)

"require": {
    ...
    "atelierspierrot/library": "dev-master"
}

The namespaces will be automatically added to the project Composer autoloader., (*13)

Quick overview

HTTP Fundamental

The Library\HttpFundamental namespace defines a set of classes to handle a classic HTTP request/response protocol., (*14)

Helpers

The Library\Helper namespace defines some classes commonly used following these rules:, (*15)

  • all methods are static,
  • methods MUST NOT send error while calling them without the right arguments or with no argument at all.

Development

To install all PHP packages for development, just run:, (*16)

~$ composer install --dev

A documentation can be generated with Sami running:, (*17)

~$ php vendor/sami/sami/sami.php render sami.config.php

The latest version of this documentation is available online at http://docs.ateliers-pierrot.fr/library/., (*18)

Author & License

PHP Library, (*19)

http://github.com/atelierspierrot/library, (*20)

Copyleft (ↄ) 2013-2016 Pierre Cassat and contributors, (*21)

Licensed under the GPL Version 3 license., (*22)

http://opensource.org/licenses/GPL-3.0, (*23)


Les Ateliers Pierrot - Paris, France, (*24)

www.ateliers-pierrot.fr - contact@ateliers-pierrot.fr, (*25)

The Versions

01/01 2016
02/03 2015

v2.0.0-BETA

2.0.0.0-beta http://github.com/atelierspierrot/library

The PHP library package of Les Ateliers Pierrot.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

helpers library

19/02 2015

v1.1.10

1.1.10.0 http://github.com/atelierspierrot/library

The PHP library package of Les Ateliers Pierrot.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

helpers library

14/02 2015

v1.1.9

1.1.9.0 http://github.com/atelierspierrot/library

The PHP library package of Les Ateliers Pierrot.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

helpers library

30/01 2015
07/01 2015

v1.1.7

1.1.7.0 http://github.com/atelierspierrot/library

The PHP library package of Les Ateliers Pierrot.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

helpers library

06/01 2015

v1.1.6

1.1.6.0 http://github.com/atelierspierrot/library

The PHP library package of Les Ateliers Pierrot.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

helpers library

22/09 2014

v1.1.5

1.1.5.0 http://github.com/atelierspierrot/library

The PHP library package of Les Ateliers Pierrot.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

helpers library

22/06 2014

v1.1.4

1.1.4.0 http://github.com/atelierspierrot/library

The PHP library package of Les Ateliers Pierrot.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

helpers library

14/06 2014

v1.1.3

1.1.3.0 http://github.com/atelierspierrot/library

The PHP library package of Les Ateliers Pierrot.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

helpers library

05/05 2014

v1.1.2

1.1.2.0 http://github.com/atelierspierrot/library

The PHP library package of Les Ateliers Pierrot.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

helpers library

17/10 2013

v1.1.1

1.1.1.0 http://github.com/atelierspierrot/library

The PHP library package of Les Ateliers Pierrot.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

helpers library

13/10 2013

v1.1.0

1.1.0.0 http://github.com/atelierspierrot/library

The PHP library package of Les Ateliers Pierrot.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

helpers library

07/10 2013

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/atelierspierrot/library

The PHP library package of Les Ateliers Pierrot.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

helpers php library

07/10 2013

1.0.12

1.0.12.0 https://github.com/atelierspierrot/library

The PHP library package of Les Ateliers Pierrot.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

helpers php library