Project Liberty code application skeleton: application
Requires
- php: ~7 || ~8
- liberty_code/error: ^1.0.
- liberty_code/framework: ^1.0.
- liberty_code/http: ^1.0.
- liberty_code/migration: ^1.0.
- liberty_code/model: ^1.0.
- liberty_code/mysql: ^1.0.
- liberty_code/request_flow: ^1.0.
- liberty_code/sql: ^1.0.
- liberty_code_module/datetime: ^1.0.
- liberty_code_module/error: ^1.0.
- liberty_code_module/framework: ^1.0.
- liberty_code_module/handle_model: ^1.0.
- liberty_code_module/migration: ^1.0.
- liberty_code_module/validation: ^1.0.
- liberty_code_module/view: ^1.0.
This package is auto-updated.
Last update: 2025-02-17 19:02:50 UTC
README
Description
LibertyCode application skeleton application contains main components, to create and run basic application.
Requirement
- Script language: PHP: version 7 || 8
Installation
Requirement
Git
It can require git installation, if used for installation. For more information: https://git-scm.com/
Composer
It requires composer installation. For more information: https://getcomposer.org
Command: Installation
Several ways are possible:
Composer
php composer.phar create-project "liberty_code_app_skeleton/app" ["<project_root_dir_path>"] ["<version>"]
Download
Several ways are possible:
Git
git clone https://bitbucket.org/libertysoft/libertycodeappskeleton_app.git
Manual download
Get repository from "https://bitbucket.org/libertysoft/libertycodeappskeleton_app/downloads/"
Command: Move in project root directory
cd "<project_root_dir_path>"
Command: External libraries installation
Required only if not installed via composer.
php composer.phar install
Note
External libraries installation
All external libraries are listed on composer file "
Instruction are set for composer. It's possible to use any way, while all external libraries, listed on composer configuration, are installed and correctly configured, on module configuration file "
Application structure
Configuration [compulsory]
Configuration directory contains all application configuration. PHP format is used. It's possible to set other available format (JSON, XML, YML, ...), in application bootstrap.
Elements
Application mode file
Stores application modes available.
Module file
Registers modules available in application.
Source [suggested]
Source directory contains all application source code, structured by modules.
Resource [suggested]
Resource directory contains all application front resources, like views, assets, ....
Bin [suggested]
Bin directory contains command line application and other command line executables.
Elements
Application file
Application bootstrap for command line.
Web [suggested]
Web directory contains web application and other web accessible components.
Elements
Index file
Application bootstrap for web.
Variable [suggested/compulsory, generated]
Variable directory contains all temporary and/or flexible components, generated by application.
Elements
Cache directories
Used by caches for application, framework, view ...
Log directory
Store logs.
Module structure
Module configuration [compulsory]
Module file contains module macro information.
Configuration [compulsory]
Configuration directory contains module configuration. By default the application configuration format is used. You can set other available format (JSON, XML, PHP, ...), in application configuration module file.
Elements
Parameters file ("
Stores module parameters, available in module.
Application parameters file ("
Stores application parameters, available in application.
Auto-loading file ("
Stores module auto-loading rules, available in application.
Dependency injection file ("
Stores module dependencies, available in application.
Register file ("
Stores module key-value pairs, available in application.
Events file ("
Stores module event, available in application.
HTTP routes file ("
Stores module web routes, available in application.
Command line routes file ("
Stores module command line routes, available in application.
Boot file ("
Stores module bootstrap files, available in application.