Download the PHP package bayrameker/my-bolt-framework without Composer
On this page you can find all versions of the php package bayrameker/my-bolt-framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bayrameker/my-bolt-framework
More information about bayrameker/my-bolt-framework
Files in bayrameker/my-bolt-framework
Package my-bolt-framework
Short Description A modern PHP framework with Bolt CLI
License MIT
Informations about the package my-bolt-framework
Bolt PHP Framework
Bolt is a fast and lightweight PHP framework. Its simple and flexible structure makes it ideal for small to medium-sized projects.
Features
- MVC (Model-View-Controller) architecture
- Simple routing system
- Easy and fast dependency injection
- View rendering support
Installation
-
Create a new project using Composer:
-
Install the necessary dependencies:
-
Create the
.envfile and configure the necessary settings: - Start the server:
Usage
Bolt Commands
The available commands for the Bolt framework are:
php bolt migrate- Runs the database migrations.php bolt create:migration {name}- Creates a new database migration.php bolt seed- Runs the database seeders.php bolt controller {name} [-v]- Creates a new controller. Use the-voption to also add a view and route.php bolt model {name}- Creates a new model.php bolt service {name}- Creates a new service.php bolt repository {name}- Creates a new repository.php bolt dump-autoload- Updates Composer autoload files.php bolt serve- Starts the application.
Router
You can add new routes in the routes/web.php file:
Controller
To create a new controller, create a new PHP file in the app/Controllers directory:
Service
Services control the business logic. Create a new PHP file in the app/Services directory:
Repository
Repositories control the data access layer. Create a new PHP file in the app/Repositories directory:
Model
Models represent the data structure. Create a new PHP file in the app/Models directory:
View
View files control the HTML content displayed to the user. Create new PHP files in the app/Views directory:
app/Views/home/index.php
app/Views/layout.php
Contributing
We welcome contributions! Please open an issue first to discuss any changes you would like to make.
- Fork the repository
- Create a new branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
This project is licensed under the MIT License. See the LICENSE file for more information.
All versions of my-bolt-framework with dependencies
vlucas/phpdotenv Version ^5.6
illuminate/database Version ^8.0
guzzlehttp/guzzle Version ^7.0
doctrine/annotations Version ^2.0