katmore / flat-webapp
boilerplate flat web application
v1.0.0
2016-12-12 20:48 UTC
Requires
- php: >=7.0.1
- katmore/flat: dev-master
This package is not auto-updated.
Last update: 2024-10-26 20:40:37 UTC
README
the boilerplate flat web package
features
- HTML templating
- Front-End Routing (for the HTML template)
- Back-End Routing (for the RESTful API webservice)
directory map
- /webapp/app/AppRoute/Api "Webservice Routing": starting point of the route map used by the "API" entry point controller, i.e., from the URL http://example.com/webapp/web/api.php/*
- for example...
define a class
MyResource
defined in /webapp/app/AppRoute/Api/MyResource.php (using namespace\AppRoute\Api\Resolve
in class definition) - then...
visit the URL
http://example.com/webapp/web/api.php/MyResource
, and theapi.php
entry point controller will instantiate the class named \AppRoute\Api\Resolve\MyResource (from above example)
- for example...
define a class
- /webapp/app/Resources/design/tmpl/view/: "HTML View Routing": Starting point of the route map used by the "View" entry-point controller
Installation
The easiest way to get going is with a two-step process using Composer and Bower
Step 1. Composer 'create-project'...
composer create-project katmore/flat-webapp my_project_dir
(copies this repo and configures php dependencies)
Step 2. Bower update...
cd my_project_dir
bower update
(installs static dependencies)
Copyright
Flat webapp - https://github.com/katmore/flat-webapp
Copyright (c) 2012-2017 Doug Bird. All Rights Reserved.
License
"Flat webapp" is copyrighted free software.
You can redistribute it and/or modify it under either the terms and conditions of the "The MIT License (MIT)"; or the terms and conditions of the "GPL v3 License".