flood / canal-structure
Requires
- php: >=7.2
- flood/canal: ~0.8.0
- flood/canal-asset: ~0.5.0
- flood/canal-view: ~0.9.0
- flood/component-performancemonitor: ~0.5
Requires (Dev)
- phpmetrics/phpmetrics: ^2.3
This package is auto-updated.
Last update: 2021-12-11 09:09:55 UTC
README
Folder structure for a Flood\Canal project.
Flood Project: Canal, which consists of:
- Canal Lib - BitBucket
- Canal: Asset - BitBucket
- Canal: View - BitBucket
- Canal: Structure - BitBucket
- bundled frontend and admin Canal Bundle - BitBucket
- only admin Canal: Admin - BitBucket
Setup the Flood\Canal PHP framework with composer:
composer create-project flood/canal-structure
composer create-project flood/canal-structure <path> <stability>
for develop:
composer create-project -s DEV flood/canal-structure:dev-develop canal
Install admin separately or use canal-bundle.
How-To
Docu and Guide:
- Setup and Run
- View and Templates
- Content Management
- Asset Management
- CLI, Console - add users, clear caches
Quick Start Development
- needs
NodeJS, npm, bower, PHP
- on windows also
WSL Ubuntu with PHP, above dependencies in windows except PHP
- on windows also
After installing through composer, these steps are all for starting development:
# Installs all developer dependencies for Grunt, WebPack (ES6), Admin, Asset Files
npm i
# Starts PHP Dev Server
# For Windows
npm run start-win
# For Linux/macOS
npm run start-uni
# For re-building all
npm run build
# For starting `assets/` watcher
npm run watch-grunt # Sass, Media, ES5
npm run watch-wp # ES6
# Create User for Admin Access
php cli user create demo -a demo
php cli user create <name> -a <pw>
Now go to:
- for Frontend: http://localhost:25020/
Run on Server
After creating the project with composer, just drop the files to a PHP 7.2+
webspace and call the URL. You should see an indication that the page has been run.
- see
app/DemoController.php
how a simple controller could be designed - see
view/_meta.twig
how a simple view/template file could be designed in
_config.php
,_content.php
and_route.php
routes and config are set, register new controllers, everything is run byflow.php
for Frontend: https://your-domain.tld
Licence
This project is free software distributed under the terms of two licences, the CeCILL-C and the GNU Lesser General Public License. You can use, modify and/ or redistribute the software under the terms of CeCILL-C (v1) for Europe or GNU LGPL (v3) for the rest of the world.
This file and the LICENCE.* files need to be distributed and not changed when distributing. For more informations on the Licences which are applied read: LICENCE.md
Copyright
2017-2019 | bemit UG (haftungsbeschränkt) - project@bemit.codes
Maintainer: Michael Becker