Skip to content

List of different Wrapper classes (PHP, Javascript...)

License

Notifications You must be signed in to change notification settings

ravenlost/CorbeauPerdu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

CorbeauPerdu

DISCLAIMER: I've done these for a personal project of mine, and more specifically, as a means to a playground to re-familiarize myself with some of the basics in OOP. Most of these could be replaced by actual, better frameworks, such as Laravel, but if you find them useful, by all means use them to learn, or help you out in your projects.

PHP Classes:

  1. CorbeauPerdu\Database\DBWrapper: Database Wrapper (DBAL) class to wrap around PDO in order to reduce code and make it safer.
  2. CorbeauPerdu\i18n\Locale: Gettext'like Wrapper class to set locale environment and then either use *nix gettext(), or JSON files for translations. Also handles plurals!
  3. CorbeauPerdu\ErrorHandler\ErrorHandler: ErrorHandler Class to log errors, email admins and show proper error page
  4. CorbeauPerdu\ORM\ORMBase: ORM library to create objects out of database table rows.
  5. CorbeauPerdu\Calendar\Calendar: A simple multi-date picker calendar, with just enough functionnalities!

Javascript Classes:

  1. CorbeauPerdu.i18n.Locale: Gettext'like Wrapper class to load translations from a given JSON object and fetch translations from it. Also handles plurals!