background preloader

Doctrine - PHP Object Persistence Libraries and More

Doctrine - PHP Object Persistence Libraries and More

Propel - The Fast PHP5 ORM What is Object/Relational Mapping? - JBoss Community 'Object-Relational Impedance Mismatch' (sometimes called the 'paradigm mismatch') is just a fancy way of saying that object models and relational models do not work very well together. RDBMSs represent data in a tabular format (a spreadsheet is a good visualization for those not familiar with RDBMSs), whereas object-oriented languages, such as Java, represent it as an interconnected graph of objects. Loading and storing graphs of objects using a tabular relational database exposes us to 5 mismatch problems…​ Granularity Sometimes you will have an object model which has more classes than the number of corresponding tables in the database (we says the object model is more granular than the relational model). Take for example the notion of an Address…​ Subtypes (inheritance) Inheritance is a natural paradigm in object-oriented programming languages. Identity A RDBMS defines exactly one notion of 'sameness': the primary key. Associations

PEAR - PHP Extension and Application Repository Optimiser les performances de son code PHP Quand une application PHP nécessite des performances optimales, il faut recourir à certaines mesures techniques d’optimisations. Il est souvent préférable de passer outre certaines bonnes pratiques. Cet article regroupe des astuces algorithmiques afin d’optimiser les performances de son code PHP. Si vous en avez d’autres, n’hésitez pas à commenter. Optimiser son code PHP Voici les astuces pour optimiser son code PHP : Sources RedBeanPHP | Easy ORM for PHP Object-relational mapping Not to be confused with Object-Role Modeling. Object-relational mapping (ORM, O/RM, and O/R mapping) in computer software is a programming technique for converting data between incompatible type systems in object-oriented programming languages. This creates, in effect, a "virtual object database" that can be used from within the programming language. There are both free and commercial packages available that perform object-relational mapping, although some programmers opt to create their own ORM tools. Overview[edit] Comparison with traditional data access techniques[edit] Compared to traditional techniques of exchange between an object-oriented language and a relational database, ORM often reduces the amount of code that needs to be written.[2] Disadvantages of O/R mapping tools generally stem from the high level of abstraction obscuring what is actually happening in the implementation code. NoSQL (Not Only SQL) databases[edit] Challenges[edit] See also[edit] References[edit]

24 Cool PHP Libraries You Should Know About Martin Angelov It is an exciting time to be a PHP developer. There are lots of useful libraries released every day, and with the help of Composer and Github, they are easy to discover and use. Here are 24 of the coolest that I’ve come across. Your favorite is not on the list? Share it in the comment section! 1. Dispatch is a minimal PHP framework. include 'dispatch.php'; get('/greet', function () { render('greet-form'); }); post('/greet', function () { $name = from($_POST, 'name'); render('greet-show', array('name' => $name)); }); dispatch(); You can match specific types of HTTP requests and paths, render views and more. 2. Klein is another light weight routing library for PHP 5.3+. respond('/[:name]', function ($request) { echo 'Hello ' . You can also subscribe to specific HTTP methods and use regexes as paths: This is great for small projects, but you have to be disciplined when using a library like this for larger apps, as your code can become unmaintainable very fast. 3. require '.. 4.

Twig - The flexible, fast, and secure PHP template engine - Homepage Home | phpDataMapper – PHP DataMapper ORM

Related: