Skip to content
bootglyPublic

About

Base PHP Framework for Multi Projects

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

262 stars

Watchers

5 watching

Forks

Latest commit

Β 

History

2,750 Commits

Folders and files

Repository files navigation

bootgly-logo

Bootgly

The native, zero-dependency PHP framework.
One async core for Web 🌐 and CLI πŸ“Ÿ β€” built for performance and clarity.

Github Actions - Bootgly Workflow Bootgly License

Bootgly is a base framework for building APIs and apps on both the Web (WPI) and Console (CLI) platforms β€” powered by a native, event-loop HTTP server written in pure PHP. It is the first PHP framework built on the I2P (Interface-to-Platform) architecture.

Why Bootgly?

  • ⚑ Native async HTTP server in pure PHP β€” long-running and event-loop driven, with Fibers for non-blocking I/O. No Nginx, no PHP-FPM in front. A pure-PHP alternative to Swoole, Workerman and FrankenPHP β€” no C extension required. AutoTLS with ACME v2.
  • πŸ“¦ Zero third-party dependencies in the core β€” every essential feature (HTTP server, router, config, testing, sessions, DBAL + ORM) is built in. A smaller vendor/ and a smaller supply-chain surface. Only the core is native (built-in) β€” your project is still extensible via Composer.
  • 🎯 One canonical way to do everything β€” one HTTP server, one config schema, one test framework. Predictable, consistent code: fewer decisions, less to maintain, no bikeshedding.
  • 🧱 Strict, enforceable architecture β€” six layers (ABI β†’ ACI β†’ ADI β†’ API β†’ CLI β†’ WPI) with one-way dependencies and no cross-layer skipping. One core, two platforms.

⚑ Quickstart

Install Bootgly and create your first project with one command β€” the installer opens the project wizard:

curl -fsSL https://bootgly.com/install | bash

⚑ Over 1,000,000 req/s β€” in pure PHP. On the TechEmpower /plaintext route, the HTTP Server CLI peaks at 1,100,393 req/s β€” level with Swoole (1,086,952) and roughly 158Γ— a Laravel + PHP-FPM stack β€” with no C extension and no third-party runtime in its core. Against Swoole it leads the database routes β€” /db (+86%), /query (+105%) and /fortunes (+50%) β€” ties /json and /updates, and trails on cached queries (βˆ’8%); in the multi-framework sweep it beat every other PHP framework benchmarked on every route.

Measured 2026-10-29 on 24 logical CPUs (Fedora 44), PHP 8.5.12, 514 connections, 10 s per route, symmetric DB pool. β†’ Full comparison & reproducible runs: Bootgly vs Swoole, Hyperf, ReactPHP, AMPHP & Laravel

Check Benchmark Detailed Results

Note

Stable β€” the 1.x line. Bootgly follows Semantic Versioning: minor releases add capabilities, patch releases repair, and nothing documented breaks before 2.0.0. Fixes land on the latest 1.x minor β€” read the Versioning and Support policy sections below, or the full Versioning guide. The documentation covers every layer.

Table of Contents


Back to top

🟒 Boot Requirements

🀝 Compatibility

Operating system Servers (WPI) CLI tooling
βœ… Linux βœ… βœ…
βœ… WSL2 βœ… βœ…
❔ macOS ❌ βœ…
❔ Windows ❌ βœ…

Linux is first-class: the servers rely on pcntl/posix, so on macOS and Windows only the CLI tooling runs natively β€” use Docker for everything else.

βš™οΈ Dependencies

  • PHP 8.4+ ⚠️
  • Opcache + JIT enabled (+50% performance) πŸ‘

🐳 Docker: docker run -it bootgly/bootgly.kit gives you the whole kit β€” framework, Console and Web β€” ready to create and run projects. latest and the 1 / 1.<minor> aliases follow the highest stable they cover (a maintenance release moves only the aliases it is still the highest for); pin an exact version (bootgly/bootgly.kit:<version>) for a build that never moves. This repository publishes bootgly/bootgly, the framework image you build your own on β€” it is always pulled by an explicit tag (<version>, 1.<minor>, 1; never latest); see the Dockerfile and the Docker guide.

PHP Packages

  • php-cli ⚠️ β€” runs everything: the bootgly command, the servers (WPI) and the Console platform (CLI)
  • php-openssl ⚠️ β€” TLS in the servers and clients, JWT, the Encrypter and ACME certificates
  • php-readline πŸ‘ β€” line editing, history and TAB completion in the servers' Interactive console (without it the console reads plain lines)
  • php-pcntl ⚠️ (Linux) β€” workers, forks and signals of the servers and the Console platform
  • php-posix ⚠️ (Linux) β€” process control and privileges: worker processes, user/group switching
  • php-mbstring πŸ‘ β€” multibyte text in the CLI UI components (a built-in fallback covers the basics)
  • php-fileinfo 🧩 β€” the MIME upload validator (ADI/Validators/MIME), which sniffs the uploaded bytes
  • php-sockets 🧩 β€” the UDP server (UDP_Server_CLI), which binds its port exclusively through it (no other account can take it), and the hot reload of the TCP and HTTP servers (listener handoff)
  • php-sqlite3 🧩 β€” the SQLite database driver (ADI/Databases/SQL/Drivers/SQLite)

--

⚠️ = Required

πŸ‘ = Recommended

🧩 = Required only by the feature that uses it


Back to top

🌱 Community

Join us and help the community.

Love Bootgly? Give our repo a star ⭐!

πŸ’» Contributing

Read the contributing guidelines first: they cover the layer rules, the naming and commenting conventions, the native test runner and PHPStan gates a change must pass, and the Conventional Commits format every commit uses. Bug reports and feature requests have issue templates; security issues go through the security policy.

πŸ›‚ Code of Conduct

Help us keep Bootgly open and inclusive. Please read and follow our Code of Conduct.

πŸ”— Social networks

πŸ’– Sponsorship

A lot of time and energy is devoted to Bootgly projects. To accelerate your growth, if you like this project or depend on it for your stack to work, consider sponsoring it.

Your sponsorship will keep this project always up to date with new features and improvements / bug fixes.


Back to top

πŸš€ Getting started

πŸ“¦ Install (one command)

The canonical way to start: the installer clones the bootgly.kit starter template, initializes the Bootgly platform and opens the project wizard:

curl -fsSL https://bootgly.com/install | bash

The platform's built-in projects (like the Demos) are already imported. Create more projects anytime β€” from scratch or from a git repository carrying the Bootgly project signature (a *.Project.php file at its root):

php bootgly projects create

πŸ“Ÿ Bootgly CLI

Run Bootgly CLI demo
  1. Run the Bootgly CLI demo in terminal:
php bootgly demo
Setup Bootgly CLI globally
  1. Run the Bootgly CLI setup command as your ordinary user. It delegates only the fixed system installation operation through sudo when required:
php bootgly setup
Perform Bootgly tests
  1. Check the global bootstrap tests file tests/autoboot.php;
  2. Run the Bootgly CLI test command in terminal:
bootgly test

You can also run specific suites or test files by index:

bootgly test 16
bootgly test 16 1

🌐 Bootgly WPI

Run the demo of HTTP Server
  1. Run it in the terminal:
bootgly project Demo/HTTP_Server_CLI start

Routing HTTP Requests on the Server-side

Check the documentation for more details and examples: Bootgly Docs.


Back to top

πŸ“ƒ License

The Bootgly is open-sourced software licensed under the MIT license.


Back to top

πŸ“‘ Policies

πŸ“ƒ Versioning

Bootgly follows Semantic Versioning 2.0.0 and commits follow Conventional Commits 1.0.0. From 1.0.0 on:

  • Minor releases (1.x.0) add capabilities and keep everything documented working as before. Patch releases (1.x.y) repair existing behavior.
  • Removing or renaming a public API, changing its established semantics, or adding a required method to an interface applications implement is a 2.0.0 change. A deprecation in a minor never authorizes a removal in the next minor β€” the deprecated way keeps working until 2.0.0.
  • Internal migrations preserve public entry points and wire/storage compatibility. Runtime behavior that is not documented, or is marked @internal, is not covered.
  • Each minor tracks the two newest PHP minors (8.4+ today).

The full rules, the deprecation policy and what counts as public API live in the Versioning guide.

πŸ›Ÿ Support policy

Version Bug fixes Security fixes
Latest 1.x minor βœ… βœ…
Older 1.x minors ❌ ❌ β€” upgrade to the latest minor
-beta / -rc pre-releases until the release they precede ships until the release they precede ships
0.x ❌ ❌

1.0 is not a long-term-support line: fixes land on the latest 1.x minor only, and upgrading between 1.x minors is meant to be a version bump, not a migration. An LTS line may be declared for a later minor; it is not promised.

πŸ” Security policy

Report vulnerabilities privately β€” never in a public issue β€” through GitHub private vulnerability reporting or [email protected]. The full policy, scope and audit history are in SECURITY.md.

About

Base PHP Framework for Multi Projects

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

262 stars

Watchers

5 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages