bubblegum-php/bubblegum

1.1.1 2024-10-18 16:28 UTC

This package is auto-updated.

Last update: 2025-06-28 15:54:19 UTC


README

Bubblegum logo

About Framework

Bubblegum is a lightweight, modular PHP framework that offers flexibility for both small-scale projects and complex applications. Its modular design allows you to combine the necessary components and remove unnecessary features, tailoring it to your specific needs.

Features

  • Modularity: Combine and customize modules to suit your specific needs.
  • Efficiency: Remove unnecessary components to optimize performance.
  • Extensibility: Create your own modules and extensions to enhance functionality.

Install

Using composer composer create-project bubblegum-php/bubblegum myproject

Using git git clone https://github.com/bubblegum-php/bubblegum.git

Docker setup

  1. There are two important environment files: /.env /docker/database.env. Create these files by following the example files located in the respective folders.

  2. Effortlessly build your project using pre-configured Docker files with a simple command: docker compose up --build

  3. Connect to http://localhost:8666/

Modules

  • CORE 🍬 The core module that connects all other modules and provides a pre-built routing system.
  • CONTROLLERS 🍬 Handles requests and generates responses.
  • VIEWS 🍬 Manages views and view objects.
  • ENVIRONMENT 🍬 Facilitates loading environment variables from files and managing them within your code.
  • DB 🍬 Offers database integration with PostgreSQL.
    • DB-MODELS 🍬 Provides models for efficient interaction with database entities.
    • DB-MIGRATIONS 🍬 Enables database schema management through migrations.
  • MIDDLEWARES 🍬 Adds middlewares to wrap your components.

Or you always can create modules by yourself :)

License

The bubblegum framework is fully open-source software licenced under the MIT LICENSE.