lou117 / core-skeleton
Ready-to-use skeleton for Core microframework. See https://github.com/Lou117/core for more details about Core.
Requires
- php: 7.1 - 7.2
- lou117/core: v3.0.6
README
core-skeleton
repository is a very basic functional example for Core microframework : you can discover Core
by clicking here.
Installation procedure
Creating project with Composer
Core is available as a package in Packagist, and Core skeleton as a project :
composer create-project lou117/core-skeleton
Updating permissions
Ensure that var/
directory is allowed for write operations:
cd core-skeleton
chmod -R 777 var
Of course, any mode will do as long as user executing PHP can write in var/
directory.
Setting up your web server
PHP integrated web server (development only)
The easiest way to get a working application is to run integrated PHP webserver:
cd web
php -S localhost:8000
Open your favorite browser and navigates to http://localhost:8000/ping
. If you see this...
{
"text": "Welcome to Core framework !",
"link": "https://github.com/lou117/core"
}
... then you're done and ready !
Apache users
Make sure :
DocumentRoot
of yourVirtualHost
is set toweb/
directory of your newly created project ;mod-rewrite
is activated ;Allow
directive for yourVirtualHost
allows for.htaccess
file interception.
.htaccess
file in web/
directory is ready-to-use.
NGINX users
An NGINX configuration piece is available in web/
directory to help you.