AsbestosPHP
A small framework for creating web applications in PHP., (*1)
Install
Basic AsbestosPHP project structure:, (*2)
composer.json
vendor/
www/
index.php
Add goncalomb/asbestos
as a composer dependency:, (*3)
"require": {
"goncalomb/asbestos": "dev-master#<asbestos-commit-hash>"
}
Optionally add the scripts to copy the asbestos files to the www/
directory:, (*4)
"scripts": {
"post-install-cmd": [
"Asbestos\\AsbestosInstaller::copyAsbestosToWWW"
],
"post-update-cmd": [
"Asbestos\\AsbestosInstaller::copyAsbestosToWWW"
]
}
In this case, use require './asbestos/core.php';
instead of the normal require '../vendor/autoload.php';
., (*5)
See www/ for a working example., (*6)
License
AsbestosPHP is released under the terms of the GNU General Public License version 3, or (at your option) any later version. See LICENSE.txt for details., (*7)