Skip to content
James edited this page Aug 28, 2016 · 2 revisions

Notes about properties for project data management:

First, a PHP project has a set of directories designed for a read-only web exposition or to write files for configuration, cache or upload needs.

Let's call those directories web-dir and writeable-dir. For example, in a Symfony project:

  • web-dir is ./web,
  • writeable-dir is ./var, or ./app/cache and ./app/logs depending on the version.

So, the kind of project (e.g. Symfony, Zend, Laravel, Drupal, Worpress, etc.) may help to automatically suggest these properties.

WebProject Object should detect the kind of project.

Then, the target url gives almost 3 important informations:

  • the host, the string between https?:// and the first /,
  • the location, the string after the fist /
  • the port, the string after an optional :. Defaults to 80 if the scheme is http, 443 if https

WebHelper should get an url as a parameter for an ad hoc command and suggest the directives to generate vhost and alias configuration, regarding the web server targeted.

Clone this wiki locally