StagPHP is is Open Source, Lightweight, Extensible, High Performance, and Secure PHP Framework for Modern Web Applications. It follows the MVC (Model View Controller) architecture.
StagPHP is Open Source, Lightweight, Extensible, High Performance, and Secure PHP Framework for Modern Web Applications. It is compatible with almost all web server that can run PHP, my SQL and Apache. It follows the popular MVC (Model View Controller) Architecture.
- Open Source StagPHP is an open-source framework. All of its verified StagONS are free and open source. We believe in open-source projects, as the contribution of every single individual matter to us. Join our community and be a part of StagPHP development team.
- StagONS StagPHP comes built-in with few libraries to ease your work. But, we all know, that might not be just enough. So we have StagONS. It is just like external library packages, similar to plugins. StagONS extends the functionality of StagPHP framework.
- Easy to use StagPHP is very easy to learn and use for your project. Use built-in libraries and StagONS for smart development. Check out our guide to get started with StagPHP. For PHP experts, we have detailed documentation of core structure and functionalities, and each and every built-in core libraries of StagPHP.
StagPHP has following directory structure (Updated on V 1.0.2). We are creating documentation for more insight.
- app - Application Directory
- cache - Auto Generated Cache Directory
- container - Storage Container
- includes - Includes Core Files
- admin - Super User / Adminstration Files
- assets
- controllers
- views
- components
- boot - Boot Up and Shutdown Function
- core
- helpers
- lib - Core Controllers and Library
- admin - Super User / Adminstration Files
- index.php
Typical, but worth mentioning
Type | Naming Convention |
---|---|
File Names | Lower cased separated with dash and group separated with dot (stag-start.group.php) |
Variables | Lower cased separated with underscored ($file_system) |
Global variables | All upper case and underscored ($GLOBAL_VARIABLE) |
Instances variables / Objects | Suffix _obj ($file_operator_obj) |
Reserved variables | Prefix stag_ ($stag_file_op_obj) |
Array | Lower cased separated with underscored (array('the_key'=>'the_value')) |
Constants | All upper case and underscored (THE_CONSTANT_VAR) |
Classes | Camel case / Pascal case (Note that, when using camel case, the initial character is upper case) (FileOperator) |
Methods | Lower cased separated with underscored (the_function()) |
Must be considered while developing StagPHP application, to avoid conflicts.
Type | LIST |
---|---|
Global Reserved Variable | ABSPATH, STAG_VERSION, STAG_INDEX, CURRENT_DOMAIN, REQUEST_URI, EXECUTION_START, APP_VIEW_LOADED, APP_404, STAG_APP_DIR, STAG_CACHE_DIR, STAG_INCLUDES, STAG_ADMIN_DIR, STAG_COMPONENTS_DIR, STAG_LIB_DIR, STAG_ADMIN_CONTROLLERS_DIR, STAG_ADMIN_VIEWS_DIR |
Reserved Function Names | stag_startup, stag_url_create, stag_url_rewrite, stag_route_junction, stag_add_route, stag_add_redirect, get_home_url, get_current_url, get_current_slug, get_su_panel_url, get_assets_dir_uri, stag_action |
- App view section removed - as we are working on new concept
- App Controller menu removed - as are moving towards the integration of StagOns
- Super Admin Panel navigation menu updated
- Update logic optimized
- Super Admin Panel UI modified including navigation
- Setup Optimized, multiple fields added, to customize framework during installation
- Core Modules Optimized
- Folder structure Modified
- Security enhanced
- Several minor bugs fixed
- Backed enqueue logic created
- Update logic optimized
- Core code optimized
- Prefix stag- removed from core folders
- Object buffer optimized
- View List Bug Fixed
- View Edit Page Bug Fixed
- Application Re-Structure
- Cache separated into container and cache
- Core Update Logic Created
- Complete code auditing, arrangement and cleanup
- Installation modified
- DB controller updated
- noDB support added
- Bootup enhanced, optimized and secured
- Update functionality modified
- Stag SMTP Integration - Work on Progress
- Added Static Objects - Phrase Object, CURL Object
- Update Logic Modified - This release is only for testing
- SU Panel UI Reset - Bootstrap Reset
- Architecture Modified
- Code Revised
- Core mySQL DB Controller Modified and Updated
- Stag Core Update Functionality Added
- Code Editor Added
- Super User Management Updated
- Stag JDB Updated
- Complete Code Revised
- Super User Management Updated
- Stag JDB Updated
- Super User Session Management Updated
- Remember Me Fixed
- Unique Session Fixed
- Ace Editor Integrated
- Code Editor Page Created
- Page ID Implemented
- Code Formatted
- Code optimized
- Multiple Functions Created
- Readme Added
- Genessis Build