2017 © Pedro Peláez
 

library concerto

A basic library for PHP projects

image

wrey75/concerto

A basic library for PHP projects

  • Friday, April 6, 2018
  • by William Rey
  • Repository
  • 1 Watchers
  • 1 Stars
  • 84 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 23 Versions
  • 0 % Grown

The README.md

concerto

This library is now mature., (*1)

It is currently used in production for the French website http://www.koikonfait.com/ . I mean there is no official release yet and the documentation is mainly inside the source code (which is nice for autocompletion in Eclipse)., (*2)

Notes

This library is an inheritance of several classes created from old PHP versions (I mean, PHP 4 or even PHP 3) and involved in several projets. Concerto is a rewrite using a namespace and very simple capabilities., (*3)

This idea behind Concerto is to offer some "out-of-the box" capabilities for some weak points in PHP:, (*4)

  • UTF-8 support (through std::XXX static functions).
  • Logging capabilities (beta).
  • SQL capabilities based on a thin layer over PDO (beta).
  • DAO (Data Access Object) upon the SQL class (beta).
  • A simple to use O/R mapping. Simpler than Hibernate but having some capabilities included like optimistic updates, etc.

A basic application

Based on what we know about applications, a BasicApplication offers a way to use easily an out-of-box application. Check the documentation of the class to see how you can extend this class., (*5)

The std class

The basic class used everywhere. This class is basically an "helper" having all the methods static. Once of my favorite is the "tag()" which creates a HTML tag based on the tag name and their attributes passed as an array. The method is in charge of cleaning the text in the values of the attributes., (*6)

If you use "get()" to retrieve values passed in the query string, you have a default behaviour translating "<" into "< " to ruin efforts to try XSS on your site. It is working to avoid script injection, but there is no SQL protection because you should use the mapping rather than creating SQL sentences manually., (*7)

The Logger class

To log data. You can create as many loggers as you want., (*8)

The DataTable class

Used to print tables (using the "<table>" tag). Note this class uses the DataTables JQuery library which can be a little old-style but working pretty well for 90% of the basic needs. There are some very enthousiastic mathods to avoid coding Javascript for this library., (*9)

The Versions

06/04 2018

dev-master

9999999-dev

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.5.0

 

by Avatar William Rey

03/04 2018

0.64.0

0.64.0.0

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.5.0

 

by Avatar William Rey

15/03 2018

0.63.0

0.63.0.0

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.5.0

 

by Avatar William Rey

25/04 2017

0.61.0

0.61.0.0

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by Avatar William Rey

06/12 2016

0.60.0

0.60.0.0

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by Avatar William Rey

23/11 2016

0.57.1

0.57.1.0

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by Avatar William Rey

22/11 2016

0.56.0

0.56.0.0

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by Avatar William Rey

07/11 2016

0.55.0

0.55.0.0

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by Avatar William Rey

26/09 2016

0.48.0

0.48.0.0

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by Avatar William Rey

05/09 2016

0.47.0

0.47.0.0

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by Avatar William Rey

03/08 2016

0.46.0

0.46.0.0

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by Avatar William Rey

26/04 2016

0.40.0

0.40.0.0

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by Avatar William Rey

14/04 2016

0.36.0

0.36.0.0

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by Avatar William Rey

31/03 2016

0.35.0

0.35.0.0

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by Avatar William Rey

17/03 2016

0.31.0

0.31.0.0

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by Avatar William Rey

15/03 2016

0.30.0

0.30.0.0

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by Avatar William Rey

07/03 2016

0.21.8

0.21.8.0

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by Avatar William Rey

18/11 2015

0.21.6

0.21.6.0

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by Avatar William Rey

16/11 2015

0.21.5

0.21.5.0

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by Avatar William Rey

16/11 2015

0.21.4

0.21.4.0

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by Avatar William Rey

11/11 2015

0.21.2

0.21.2.0

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by Avatar William Rey

09/11 2015

0.21.0

0.21.0.0

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by Avatar William Rey

04/11 2015

0.20.0

0.20.0.0

A basic library for PHP projects

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by Avatar William Rey