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.
Monolog
Replace native Logger with Monolog for 50+ handlers, processors, and formatters.
Symfony Mailer
Replace native SMTP with Symfony Mailer for SES, Mailgun, SendGrid, and more.
Flysystem
Unified filesystem abstraction for local, S3, FTP, SFTP, and more backends.
Carbon Clock
PSR-20 Clock implementation with Carbon for powerful date/time manipulation.
PHP dotenv
Enhanced .env parsing with variable expansion, multiline values, and validation.
Twig Templates
Use Twig templating engine as an alternative to Blade.
Smarty Templates
Use Smarty templating engine as an alternative to Blade.
PHP DebugBar
Replace native DebugBar with maximebf/debugbar for visual in-browser debugging.
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.