PHPackages                             gfmois/pickles-core - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. gfmois/pickles-core

ActiveLibrary[Framework](/categories/framework)

gfmois/pickles-core
===================

Simple PHP Framework inspired by Laravel

v0.1.0(11mo ago)05MITPHPCI failing

Since May 24Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/gfmois/pickles-core)[ Packagist](https://packagist.org/packages/gfmois/pickles-core)[ RSS](/packages/gfmois-pickles-core/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Pickles Framework
=================

[](#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
--------

[](#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
------------

[](#requirements)

- PHP 8.1 or higher
- Composer
- PDO extension (for database access)
- Supported databases: MySQL, PostgreSQL

---

Installation
------------

[](#installation)

1. **Clone the repository:**

    ```
    git clone https://github.com/gfmois/pickles-framework-1.git
    cd pickles-framework-1
    ```
2. **Install dependencies:**

    ```
    composer install
    ```
3. **Copy and edit your environment file:**

    ```
    cp .env.example .env
    # Edit .env to match your database and app settings
    ```
4. **Set up git hooks (optional):**

    ```
    chmod +x setup-git.sh
    ./setup-git.sh
    ```

---

Configuration
-------------

[](#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
-----

[](#usage)

### Running the Application

[](#running-the-application)

Start the built-in PHP server from the `public/` directory:

```
php -S localhost:8080 -t public
```

Visit  in your browser.

### Routing Example

[](#routing-example)

Define routes in `routes/web.php` or directly in your entry file:

```
use Pickles\Http\Request;
use Pickles\Routing\Route;

Route::GET('/hello', function(Request $request) {
    return 'Hello, Pickles!';
});
```

### Controllers &amp; Models

[](#controllers--models)

Create controllers in `app/Controllers/` and models in `app/Models/`. Example model:

```
class User extends Model {
    public array $fillable = ['name', 'email'];
}
```

---

Database &amp; Migrations
-------------------------

[](#database--migrations)

### Creating a Migration

[](#creating-a-migration)

```
php pickles.php make:migration create_users_table
```

Edit the generated file in `database/migrations/`.

### Running Migrations

[](#running-migrations)

```
php pickles.php migrate
```

### Rolling Back Migrations

[](#rolling-back-migrations)

```
php pickles.php migration:rollback [steps]
```

- Omit `[steps]` to rollback all, or provide a number to rollback N migrations.

---

Validation
----------

[](#validation)

Use validation rules in your controllers or route handlers:

```
$data = $request->validate([
    'email' => 'required|email',
    'password' => 'required|min:8',
]);
```

---

Testing
-------

[](#testing)

Run the test suite with PHPUnit:

```
composer test
```

Tests are located in the `tests/` directory.

---

Contributing
------------

[](#contributing)

1. Fork the repository.
2. Create your feature branch (`git checkout -b feature/your-feature`).
3. Commit your changes.
4. Push to the branch (`git push origin feature/your-feature`).
5. Open a pull request.

---

License
-------

[](#license)

This project is licensed under the MIT License.

---

Author
------

[](#author)

Moisés Guerola
[Contact](mailto:daw.moisesguerola@gmail.com)

---

Configure githooks
==================

[](#configure-githooks)

Launch Scrip
------------

[](#launch-scrip)

```
chmod -x setup-git.sh
./setup-git.sh
```

Or configure it manually
------------------------

[](#or-configure-it-manually)

### Add permissions to pre-commit hook

[](#add-permissions-to-pre-commit-hook)

```
chmod +x .githooks/pre-commit
```

### Configure git to use .githooks as hook directory

[](#configure-git-to-use-githooks-as-hook-directory)

```
git config core.hooksPath .githooks
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance50

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

359d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d344b0b49d78b19fa876f2348e9f5c96dba722c7d2d3a9853b94627e02d0482d?d=identicon)[gfmois](/maintainers/gfmois)

---

Top Contributors

[![gfmois](https://avatars.githubusercontent.com/u/102977172?v=4)](https://github.com/gfmois "gfmois (95 commits)")

---

Tags

laravelphp-frameworkphp8recreational-programming

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/gfmois-pickles-core/health.svg)

```
[![Health](https://phpackages.com/badges/gfmois-pickles-core/health.svg)](https://phpackages.com/packages/gfmois-pickles-core)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/vapor-cli

The Laravel Vapor CLI

31310.7M8](/packages/laravel-vapor-cli)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[doppar/framework

The Doppar Framework

366.7k8](/packages/doppar-framework)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
