webfiori / app
The default application template for WebFiori Framework.
Requires
- php: >=7.0
- webfiori/framework: v3.0.0-RC4
- dev-main
- v3.0.0-RC7
- v3.0.0-RC6
- v3.0.0-RC5
- v3.0.0-RC4
- v3.0.0-RC3
- v3.0.0-RC2
- v3.0.0-RC1
- v3.0.0-RC0
- v3.0.0-Beta.26
- v3.0.0-Beta.18
- v3.0.0-Beta.14
- v3.0.0-Beta.13
- v3.0.0-Beta.12
- v3.0.0-Beta.6
- v3.0.0-Beta.4
- v3.0.0-Beta.2
- v3.0.0-Beta.1
- v2.4.7
- v2.4.6
- v2.4.5
- v2.4.4
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- v2.3.5
- v2.3.4
- v2.3.3
- v2.3.2
- v2.3.1
- v2.3.0
- v2.2.0
- v0.1
- dev-release-please--branches--main
- dev-release-please--branches--dev
- dev-dev
This package is auto-updated.
Last update: 2026-04-09 10:39:57 UTC
README
The default application template for WebFiori Framework. Use this as a starting point to create new WebFiori projects.
Requirements
- PHP >= 8.1
- Composer
Quick Start
composer create-project webfiori/app my-site
cd my-site
php -S localhost:8080 -t public
Then open http://localhost:8080 in your browser.
Project Structure
├── public/ # Web server document root
│ ├── index.php # Application entry point
│ ├── .htaccess # Apache rewrite rules
│ ├── web.config # IIS rewrite rules
│ └── assets/ # Static files (CSS, JS, images)
├── tests/ # PHPUnit tests
│ ├── bootstrap.php # Test bootstrap
│ └── phpunit.xml # PHPUnit configuration
├── composer.json
├── php_cs.php.dist # PHP CS Fixer configuration
├── webfiori # CLI entry point (Linux/macOS)
└── webfiori.bat # CLI entry point (Windows)
After running composer create-project, the framework will generate an App/ directory containing your application code (routes, middleware, commands, etc.).
Customizing the App Directory
By default, the framework uses App/ as the application root directory. To change this, edit the first parameter of App::initiate() in public/index.php:
App::initiate('MyApp', 'public', __DIR__);
Reasons you might want to rename it:
- Gives your project a distinct identity instead of a generic
App/folder. - Avoids naming conflicts if you're integrating WebFiori into an existing project that already has an
App/directory. - Makes it easier to distinguish between multiple WebFiori-based projects in the same workspace.
Running Tests
composer test
Code Style
This project uses PHP CS Fixer for code style enforcement.
composer cs-check # Check for violations (dry run) composer cs-fix # Auto-fix violations
CLI Usage
WebFiori includes a CLI tool for common tasks:
# Linux/macOS php webfiori # Windows webfiori.bat
Documentation
Contributing
For information on how to contribute, see the contribution guide.
Reporting Issues
- For bugs and feature requests, open an issue.
- For security vulnerabilities, please email ibrahim@webfiori.com.
License
This project is licensed under the MIT License.