Bridge Packages

Info: Drop-in Replacements: Each bridge replaces Larafony's native implementation by swapping the service provider. No code changes required - same interfaces, different engine.

Available Bridges

Guzzle HTTP

Replace native cURL client with Guzzle for async requests, middleware, and advanced HTTP features.

Learn more →

Monolog

Replace native Logger with Monolog for 50+ handlers, processors, and formatters.

Learn more →

Symfony Mailer

Replace native SMTP with Symfony Mailer for SES, Mailgun, SendGrid, and more.

Learn more →

Flysystem

Unified filesystem abstraction for local, S3, FTP, SFTP, and more backends.

Learn more →

Carbon Clock

PSR-20 Clock implementation with Carbon for powerful date/time manipulation.

Learn more →

PHP dotenv

Enhanced .env parsing with variable expansion, multiline values, and validation.

Learn more →

Twig Templates

Use Twig templating engine as an alternative to Blade.

Learn more →

Smarty Templates

Use Smarty templating engine as an alternative to Blade.

Learn more →

PHP DebugBar

Replace native DebugBar with maximebf/debugbar for visual in-browser debugging.

Learn more →

How Bridges Work

Larafony bridges follow a simple pattern: swap the service provider in your bootstrap.php and the bridge takes over. Your application code remains unchanged because bridges implement the same interfaces.

// bootstrap.php
$app->withServiceProviders([
// Comment out native provider
// Larafony\Framework\Log\ServiceProviders\LogServiceProvider::class,

// Add bridge provider instead
Larafony\Log\Monolog\ServiceProviders\MonologServiceProvider::class,
]);

Success: PSR Standards: All bridges implement PSR interfaces (PSR-3, PSR-18, PSR-20), ensuring compatibility with any PSR-compliant library.