Download the PHP package gfmois/pickles-core without Composer
On this page you can find all versions of the php package gfmois/pickles-core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gfmois/pickles-core
More information about gfmois/pickles-core
Files in gfmois/pickles-core
Package pickles-core
Short Description Simple PHP Framework inspired by Laravel
License MIT
Informations about the package pickles-core
Pickles Framework
A simple, modern PHP framework inspired by Laravel. Pickles provides a clean structure for building web applications, including routing, controllers, models, migrations, validation, session management, and a view engine.
Features
- MVC Structure: Organize your code with Models, Views, and Controllers.
- Routing: Define routes for your application with support for middleware.
- Database ORM: Simple model system with fillable/hidden attributes and query helpers.
- Migrations: Create, run, and rollback database migrations via CLI.
- Validation: Powerful validation rules and custom error messages.
- Session Management: Flash data, session storage abstraction.
- View Engine: Lightweight PHP-based templating.
- Service Providers: Register and configure services for your app.
- Extensible: Easily add your own providers, middleware, and helpers.
Requirements
- PHP 8.1 or higher
- Composer
- PDO extension (for database access)
- Supported databases: MySQL, PostgreSQL
Installation
-
Clone the repository:
-
Install dependencies:
-
Copy and edit your environment file:
- Set up git hooks (optional):
Configuration
All configuration files are in the config/ directory:
app.php: App name, environment, URL, version.database.php: Database connection settings.session.php: Session storage driver.view.php: View engine and path.providers.php: Service providers for boot/runtime/CLI.
You can use environment variables in your .env file to override config values.
Usage
Running the Application
Start the built-in PHP server from the public/ directory:
Visit http://localhost:8080 in your browser.
Routing Example
Define routes in routes/web.php or directly in your entry file:
Controllers & Models
Create controllers in app/Controllers/ and models in app/Models/. Example model:
Database & Migrations
Creating a Migration
Edit the generated file in database/migrations/.
Running Migrations
Rolling Back Migrations
- Omit
[steps]to rollback all, or provide a number to rollback N migrations.
Validation
Use validation rules in your controllers or route handlers:
Testing
Run the test suite with PHPUnit:
Tests are located in the tests/ directory.
Contributing
- Fork the repository.
- Create your feature branch (
git checkout -b feature/your-feature). - Commit your changes.
- Push to the branch (
git push origin feature/your-feature). - Open a pull request.
License
This project is licensed under the MIT License.
Author
Moisés Guerola
Contact