Yabasi Framework

The Next Generation PHP Development

A powerful, flexible, and modern PHP framework designed for rapid application development

Powerful Features for Modern Development

High Performance

Optimized for speed and efficiency, outperforming many popular frameworks.

Advanced Security

Built-in protection against common web vulnerabilities and attacks.

Flexible Architecture

Modular design allowing for easy customization and extension.

Powerful ORM

Intuitive database interactions with advanced relationship handling.

Caching & Optimization

Multi-level caching system for optimal application performance.

Developer-Friendly Tools

CLI tools, debugging aids, and comprehensive testing support.

Unmatched Performance

*Based on benchmark tests processing 1000 requests with a "Hello World" response

Code Example - Simple and Powerful

PostController.php
namespace Yabasi\Controllers;

use Yabasi\Http\Request;
use Yabasi\Http\Response;
use Yabasi\Cache\CacheManager;
use Yabasi\Events\EventDispatcher;

class PostController extends Controller
{
    public function __construct(
        protected CacheManager $cache,
        protected EventDispatcher $events
    ) {
        $this->middleware('cache')->only('index', 'show');
        $this->middleware('auth')->except('index', 'show');
    }

    public function index(Request $request): Response
    {
        $posts = Post::query()
            ->filter($request->only('category', 'tag', 'status'))
            ->latest()
            ->paginate();

        return $this->json($posts);
    }

    public function store(Request $request): Response
    {
        $post = Post::create(
            $request->validate([
                'title'   => 'required|min:3',
                'content' => 'required',
                'status'  => 'in:draft,published'
            ])
        );

        $this->cache->tags('posts')->flush();
        $this->events->dispatch('post.created', $post);

        return $this->json($post, 201);
    }

    public function show(string $slug): Response
    {
        return $this->json(
            $this->cache->tags('posts')->remember(
                "post.{$slug}",
                fn() => Post::whereSlug($slug)
                    ->with('author', 'comments')
                    ->firstOrFail()
            )
        );
    }
}

Key Features Demonstrated

  • Elegant Request Handling
  • Smart Cache Management
  • Built-in Data Filtering
  • Event-Driven Architecture
  • Automatic Validation
  • Relation Auto-Loading

Clean, concise, and powerful: Experience rapid development without compromising code quality.

Comprehensive Ecosystem

ORM & Database

Advanced ORM with support for multiple databases, migrations, and seeders.

Authentication & Authorization

Robust security system with multi-auth support and role-based permissions.

API Development

Built-in tools for RESTful API development, including versioning and rate limiting.

Queue & Job Processing

Efficient background job processing with multiple queue drivers.

WebSocket Support

Real-time communication capabilities with WebSocket integration.

Testing & Debugging

Comprehensive testing suite and powerful debugging tools for robust development.

Comprehensive Documentation

Everything you need to know about Yabasi, from getting started to advanced topics

Explore the Docs

Join Our Thriving Community

10,000+

GitHub Stars

5,000+

Community Members

1,000+

Contributors