How to create REST URLs without verbs?

http://stackoverflow.com/questions/1619152/how-to-create-rest-urls-without-verbs General principles for good URI design: Don’t use query parameters to alter state Don’t use mixed-case paths if you can help it; lowercase is best Don’t use implementation-specific extensions in your URIs (.php, .py, .pl, etc.) Don’t fall into RPC with your URIs Do limit your URI space as much as possible Do keep ...

Partial Doctrine entities

It turns out the solution is really simple. We just need to tell Doctrine of our intentions to fetch just part of the entity, by using the partial DQL keyword. SELECT partial l{id, title} FROM Log l Word of warning though: Doctrine will not lazily fetch the omitted fields, like it does for associations. If ...

Be lazy, be ESI: HTTP caching and Symfony2

http://www.slideshare.net/odino/be-lazy-be-esi-http-caching-and-symfony2-phpday-2011

Generates documentation for your REST API from annotations

The NelmioApiDocBundle bundle allows you to generate a decent documentation for your APIs.

Speedup Symfony2 on Vagrant boxes

http://jeremybarthe.com/2015/02/02/speed-up-vagrant-environment-symfony2/ Optimizing Symfony applications on Vagrant boxes Speedup Symfony2 on Vagrant boxes

REST-ful URI design

There can be confusion about URIs and URLs (and URNs!). To get a URL just tack on a server (example.com) and a protocol (http or ftp) to a URI (/example): http://example.com/example. The URI identifies the resource. And a URL adds some information about how to get it. http://blog.2partsmagic.com/restful-uri-design/

ACLs and Symfony2

http://blog.mayflower.de/1944-ACLs-and-Symfony2.html

Conditionally Requiring a Form Field in Symfony2

http://knpuniversity.com/screencast/question-answer-day/symfony2-conditionally-required-field

MongoDB + MySQL with Doctrine 2. Example of listener to maintain redundant data (alternative to joins)

http://www.phpntips.com/mongodb-mysql-with-doctrine-2-example-of-listener-to-maintain-redundant-data-alternative-to-joins-2012-12/

MongoDB ODM SELECT COUNT(*) equivalent

Equivalent to the MySQL-Query: “SELECT COUNT(*) FROM users” in MongoDB ODM is: $count = $this->dm->createQueryBuilder(‘Documents\Functional\Users’)->getQuery()->execute()->count() http://stackoverflow.com/questions/10978242/mongodb-odm-select-count-equivalent