The Evolutionary PHP Ecosystem
Building tools that adapt to developers, not the other way around.
Making PHP development joyful again.
After years of wrestling with heavyweight frameworks and rigid architectures, we believe PHP developers deserve better. PivotPHP is an experimental framework exploring Express.js-inspired patterns in PHP.
🧪 Project Status: PivotPHP is a research and development project. Perfect for prototyping, learning, and validating API concepts. Currently not recommended for production use.
🚀 High-Performance APIs
|
🎯 Developer First
|
🧪 Research & Development
|
We're building an ecosystem where:
- ⚡ Performance comes first, not as an afterthought
- 🔧 Flexibility is the default, not a premium feature
- 💝 Developer experience matters, from first
composer require
to production deploy - 🌱 Evolution is encouraged, letting your code grow naturally
The heart of PivotPHP. Fast, unopinionated microframework with Express.js-inspired syntax. // 🚀 Build APIs in seconds
$app = new Application();
$app->get('/hello/:name', fn($req, $res) =>
$res->json(['message' => "Hello, {$req->params->name}!"])
);
$app->run(); // That's it! Zero boilerplate Features:
|
Powerful database ORM integration with zero configuration. // 🔍 One line connection, type-safe queries
$app->register(new CycleServiceProvider([
'dbal' => ['databases' => ['default' => [
'connection' => 'mysql://user:pass@localhost/db'
]]]
]));
$users = User::where('active', true)
->with('posts')
->limit(10)
->get(); // Automatic query optimization Features:
|
Async runtime for long-running applications. // 🔄 Continuous server without restarts
$app->register(new ReactServiceProvider([
'server' => ['host' => '0.0.0.0', 'port' => 8080]
]));
$app->runAsync(); // Non-blocking event loop Features:
|
The PivotPHP ecosystem is designed to be extended! We're excited to see what the community will build.
Built-in Core Features:
- 📝 OpenAPI/Swagger - Automatic API documentation generation
- ⚡ High-Performance Mode - Object pooling & lazy loading (v1.1.0)
- 🚀 JSON Optimization - Buffer pooling for JSON operations (v1.1.1)
- 🛡️ Security Suite - CSRF, XSS, Rate limiting built-in
- 📊 Performance Monitoring - Real-time metrics and profiling
Planned Extensions:
- 📧 Mail Service - Email abstraction layer
- 🚦 Queue System - Background job processing
- 💾 Advanced Caching - Multi-driver support
- 🔌 WebSocket Server - Real-time communication
- 📊 GraphQL - Modern API queries
// 1. Create Service Provider
class MyExtensionServiceProvider extends ServiceProvider
{
public function register(): void
{
$this->container->singleton('myservice', MyService::class);
}
public function boot(): void
{
$this->app->get('/my-route', [MyController::class, 'handle']);
}
}
// 2. Register in your app
$app->register(new MyExtensionServiceProvider());
Extension Guidelines:
- Follow
pivotphp-{name}
naming convention - Provide comprehensive tests
- Document with examples
- Tag as
pivotphp-extension
on Packagist
Metric | Value |
---|---|
API Throughput | Up to 70.9M requests/hour |
Core Performance | 32.4M requests/hour |
ORM Performance | 16.5M requests/hour |
Memory Usage | 6-12MB (varies by variant) |
Extensions | Core + ORM + ReactPHP |
Status | Research & Development |
// 🔒 Secure API with JWT auth in 5 lines
$app->group('/api/v1', function($group) {
$group->middleware([Auth::jwt(), RateLimit::perMinute(100)]);
$group->get('/profile', fn($req, $res) => $res->json($req->user));
$group->resource('/posts', PostController::class);
});
// ✅ Type-safe validation out of the box
$data = $req->validate([
'email' => 'required|email',
'name' => 'required|string|max:100'
]);
// 🔌 Real-time features in 2 lines
$ws = new WebSocket\Server($app);
$ws->on('message', fn($socket, $data) => $socket->broadcast('update', $data));
# Create your first PivotPHP app
composer create-project pivotphp/skeleton my-api
cd my-api && php -S localhost:8000
# 🎉 Your API is now running at http://localhost:8000
# Join the development
git clone https://github.com/PivotPHP/pivotphp-core.git
cd pivotphp-core
composer install && composer test
We believe great software comes from great communities. Here's how you can help:
- Report bugs and request features in our Issues
- Submit code via Pull Requests to any of our repositories
- Improve docs by editing our website
- Help others in Discord and Discussions
- Spread the word by starring our repos and sharing with friends
Like DNA that adapts to different environments, PivotPHP evolves with your project. Start simple, scale complex, never rewrite.
Every line of code is optimized. We measure everything and make performance visible, because fast APIs make happy users.
The best framework is the one you don't think about. PivotPHP stays out of your way while providing the tools you need.
Built by developers, for developers. Every decision is made with real-world usage in mind, not academic ideals.
Current Focus (Q3 2025)
- Core framework stabilization ✅
- Cycle ORM integration v1.0.1 ✅
- ReactPHP extension v0.0.2 ✅
- Basic middleware collection ✅
- Performance benchmarking suite ✅
- High-performance mode v1.1.0 ✅
- Production validation complete ✅
- Testing utilities package (in progress)
Coming Soon (Q4 2025)
Community Extensions:
- WebSocket server for real-time communication
- Multi-driver caching (Redis, Memcached)
- OpenAPI/Swagger auto-generation
- Background job processing
- Email service abstraction
Developer Tools:
- Docker development containers
- VS Code extension with snippets
- PHPStorm plugin
- Deployment guides (Heroku, AWS, DigitalOcean)
Future Vision (2026)
Advanced Extensions:
- pivotphp/graphql - GraphQL server implementation
- pivotphp/grpc - gRPC service support
- pivotphp/events - Distributed event bus
- pivotphp/admin - Auto-admin panel generator
- pivotphp/testing - Advanced testing utilities
Enterprise Features:
- Multi-tenancy support
- Advanced security middleware
- Microservices toolkit
- Cloud platform integrations
- Conference talks and workshops
Caio Alberto Fernandes started PivotPHP after 6 years of frustration with existing PHP frameworks. What began as a weekend experiment to bring Express.js elegance to PHP has grown into a movement for better developer tools.
"I believe the best frameworks are invisible—they amplify your skills without imposing their opinions. PivotPHP is my attempt to build that invisible layer for PHP developers."
- License: MIT (free for commercial use)
- Support: Community-driven via Discord and GitHub
- Sponsorship: GitHub Sponsors
💎 Core Framework • 🗄️ Cycle ORM • 📚 Website • 🎓 Examples
Made with love by the PHP community, for the PHP community.
PivotPHP: Code that evolves with you.