Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Bitly Bundle

Bitly Bundle Laravel Package

rukbat/bitly-bundle

Rukbat Bitly Bundle offers a lightweight integration for shortening URLs through the Bitly API in your PHP application. Configure your access token, then generate short links directly from your code with a simple service wrapper and minimal setup.

View on GitHub
Deep Wiki
Context7

Symfony2 bundle for the Bitly API (http://dev.bitly.com/api.html) API.

Frequently asked questions about Bitly Bundle
Can I install rukbat/bitly-bundle in a Laravel application?
No, not natively. RukbatBitlyBundle is a Symfony 2.x bundle that registers through a Bundle class and AppKernel, not a Laravel ServiceProvider. Using it in Laravel would require porting its client and configuration rather than integrating it as a dependency.
Does rukbat/bitly-bundle support Laravel 10 or Laravel 11?
It does not support modern Laravel versions. The package targets Symfony 2.x and PHP 5.3 to 5.6-era syntax, and its Guzzle constraint is in the 3.x or 4.x range. That conflicts with the Guzzle 6 or 7 versions used by current Laravel applications.
How do I install and configure RukbatBitlyBundle?
Installation is Symfony-oriented: require the package with Composer, register the bundle in AppKernel, and configure your Bitly access token and API options through the Symfony configuration tree. There is no publishable Laravel config file or ServiceProvider registration path. In Laravel you would have to rebuild that wiring yourself.
Which Bitly API version does rukbat/bitly-bundle target?
The package description points to Bitly's v3 API documentation, which used query-parameter authentication. Bitly retired v3 in 2020 in favour of v4, which requires an OAuth Bearer token. That means the core call path is probably non-functional today regardless of framework.
Is rukbat/bitly-bundle still maintained?
There is no active maintainer, vendor, or security-patch path. The project has around 10 stars and zero dependents, so there is no CVE response or community support. Treat it as abandoned rather than production-ready.
What is the best Laravel alternative for shortening URLs with Bitly?
Use an actively maintained Bitly SDK such as bitly/bitly-api-php, or call the Bitly v4 REST endpoints directly through Laravel's Http client. That gives you Laravel-native configuration, Http::fake() testing, and retry middleware. Wrap it behind your own interface and bind it in a ServiceProvider.
Can I use this bundle's service with Laravel's container or autowiring?
No. The bundle resolves its client from the Symfony container and exposes configuration through a Symfony Configuration tree and services.yml. Laravel's ServiceProvider, publishable config, facades, and container auto-binding have no equivalent loading path for a Symfony bundle. Adopting it in Laravel is a port, not an integration.
How do I test Bitly URL shortening in a Laravel application?
Do not rely on this bundle for testing support, since it has no meaningful Laravel test integration. Instead, bind a Bitly client interface in your container and fake the outgoing HTTP calls with Laravel's Http::fake(). That lets you assert shorten, expand, and click-statistics requests without hitting the live Bitly API.
What Guzzle version does rukbat/bitly-bundle require, and will it conflict with Laravel?
Its Guzzle constraint is in the 3.x or 4.x range, while modern Laravel applications depend on Guzzle 6 or 7. Conflicts typically surface at autoload time or on the first HTTP call rather than cleanly at install. You should not try to resolve that conflict in a Laravel codebase.
Is it worth forking rukbat/bitly-bundle for a Laravel project?
The codebase is small enough to read through in a single review, so it works well as a reference for Bitly call shapes. Forking means you own it permanently, including API drift and security fixes. The better path is a small Laravel-native replacement behind an internal interface using the Bitly v4 API.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource