simondavies / slimphp-vanilla
A simple base app, using the PHP framework Slim at its heart, and implementing Laravel's Eloquent ORM
Requires
- php: >=5.4
- illuminate/database: 4.2.*
- monolog/monolog: ~1.12
- slim/slim: ~2.5
- slim/views: 0.1.*
- symfony/var-dumper: ~2.6
- twig/twig: ~1.16
- vlucas/phpdotenv: ~1.1
Requires (Dev)
- behat/behat: 2.*
- phpspec/phpspec: ~2.1
This package is not auto-updated.
Last update: 2024-11-15 21:28:52 UTC
README
Discontinued support in favour for a new Slim PHP 3 version
I have began a new version of this that concentrate on a bit more PHP Slim 3 Vanilla
Details
A simple base app, using the PHP framework PHP Slim at its heart, and implementing Laravel's Eloquent ORM.
Official Documentation
Please find the following documentation details for further reading on the main items used within this app.
Slim PHP
Slim Documentation for further details.
Laravel's Eloquent ORM
Laravels Eloquent ORM, currently using version 4.2.
##Getting Started #####Server Set Up I am using laravels Homestead VM for my developement, more on this can be found at the laravel website laravel.com. A great video on the installation and usage of Homestead can be also seen at Laracasts.com #####Installation & Set up I am mainly using composer for the whole install and programming. For more details on how to set up and install Composer can be found at getcomposer.org
composer create-project simondavies/slimphp-vanilla your-project-name
Now set up homestead, so that we point a test domain name to our new set up, as below:
First of ssh into your homestead server (Please read the Homested docs for further information):
Then run the homestead server code as below to point to your domain name to the public folder
serve mytestdomainname.app /home/vagrant/Code/path/to/public/directory
Once this has been done you will then need to add your domain name to the mac host files, located at /etc/hosts
Once open add the following to the host file:
192.168.10.10 mytestdomainname.app
Next make a copy of the .env.example file and rename this .env.
Now you should be able to type 'http://testvanilla.app' into the browser and the demo Slim Vanilla site should show up.
License
The Laravel framework is open-sourced software licensed under the MIT license
A Thanks's to..
Just a list of people and projects i like to thank on my way...
Codeguy of the Slim Framework.
Taylor Otwell and the people involved in the Laravel Framework.
Jeffery Way and his aweasome Laracasts Tutorials website and Codebase.
Many more that I will eventually add here..
Thanks All.