Opcoding starter kit
Typical Objective PHP project arborescence, with minimal workflow and configuration implementation.
This is where to start your own Objective PHP project.
A few simple steps are needed to get this application up and running:
# install the project and its dependencies composer create-project -s dev objective-php/starter-kit [project-name] cd [project-name] # run a local web server php -S localhost:8001 -t public
You can then open http://localhost:8001 to access your brand new project. Note that the framework will show itself much more efficient when using a production grade web server (as Apache or Nginx), while the PHP built-in server will allow you to make the starter kit running within seconds.
The starter-kit comes with sample Doctrine support. This setup has to be activated by plugging the Doctrine Package in the Application.
This can be done by simply uncommenting the corresponding line in the
Application::importPackages() method (in
To run the native Doctrine CLI console you may are used to, it has to be wrapped with Objective PHP init sequence. So, please trigger the console tool by running:
You should also adapt the
app/config/doctrine.php configuration file to reflect your own setup, not to forget that you also
can override any config file by creating a local version of it (like