Install Symfony app in a subfolder of an existing site

The request was simple: one of my customer wanted to have a Symfony app available as a subfolder of an existing site, i.e.

http://www.example.com/myapp/

Googling for it, I found lots of tutorials but each one of them failed to meet two specific requirements:

  • I don’t want to edit the virtual host configuration
  • the application folders (“app”, “bin”, “src”, “vendor”) must be outside the site root

So here’s my solution, which only assumes that you have file access (i.e. FTP) at one level above your site root.

Continue reading Install Symfony app in a subfolder of an existing site

Create an epub with Symfony documentation

Original version of this article:

https://extensions.gibilogic.com/blog/109-ot-create-an-epub-with-symfony-documentation.html

If you’re a good PHP developer you should know something about Symfony and what better way to do it than reading an epub?

We will talk more about Joomla, Symfony and other tools in a later article; in this one I just want to show you how to produce an epub with Symfony documentation for any supported version.

Continue reading Create an epub with Symfony documentation

RESTful API: the truth about POST and PUT

Original version of this article:

https://extensions.gibilogic.com/blog/105-restful-api-the-truth-about-post-and-put.html

So up until now whenever I heard or read someone talk about RESTful API, I had this confusion about POST and PUT being somewhat interchangeable.

But then again I thought, surely thery are not meant to be interchangeable, because in that case why create two different methods? It’s not like we’re talking about a programming language.

Tonight I decided to clear my doubts once and for all, and went to the source of it all:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

RFC 2616 is the one that defines the HTTP 1.1 protocol and it’s probably worth a reading for any web developer.

Continue reading RESTful API: the truth about POST and PUT