PHPackages                             arisharyanto/bitlys - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. arisharyanto/bitlys

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

arisharyanto/bitlys
===================

Libraries to create Short URL with Bitly API

1.0.0(8y ago)2558MITPHPPHP ~5.5|~7.0

Since Oct 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Aris-haryanto/Bitlys-Laravel)[ Packagist](https://packagist.org/packages/arisharyanto/bitlys)[ Docs](https://github.com/Aris-haryanto/Bitlys-Laravel)[ RSS](/packages/arisharyanto-bitlys/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Bitlys Laravel
==============

[](#bitlys-laravel)

Create Shorten URL with Bitly API in Laravel

### How to install

[](#how-to-install)

- Run in your terminal:

```
$ cd yourprojectdirectory
$ composer require arisharyanto/bitlys

```

- Add the service providers in config/app.php:

```
Arisharyanto\Bitlys\BitlysServiceProvider::class,

```

- Run this command in the terminal

```
$ php artisan vendor:publish --provider="Arisharyanto\Bitlys\BitlysServiceProvider"

```

- Add access\_token from your bitly apps in config/bitlys.php:

```
'access_token' => 'your access token',

```

### How to use

[](#how-to-use)

Just add `use Arisharyanto\Bitlys\Bitlys`

```
Bitlys::shorten($longUrl);  # Create short bitly url
Bitlys::expand($shortUrl);  # Convert shortUrl to longUrl
Bitlys::clicks($shortUrl);  # Returns the number of clicks on a single Bitlink
Bitlys::countries($shortUrl);  # Returns metrics about the countries referring click traffic to a single Bitlink

```

Simple !

### Who is using Bitlys

[](#who-is-using-bitlys)

- [Ramayana](http://www.ramayana.co.id/)
- [Unilever Food Solution](https://www.sahabatufs.com/)

### License

[](#license)

See the license

### Author

[](#author)

Aris Haryanto visit my website

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3170d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a11a4e3b3577d1f4ddb685cffaa877ac175cce9eae27f48970ce4c6859e94fae?d=identicon)[Aris-haryanto](/maintainers/Aris-haryanto)

---

Top Contributors

[![Aris-haryanto](https://avatars.githubusercontent.com/u/11023724?v=4)](https://github.com/Aris-haryanto "Aris-haryanto (16 commits)")

---

Tags

bitlyshortenshortbitlys

### Embed Badge

![Health badge](/badges/arisharyanto-bitlys/health.svg)

```
[![Health](https://phpackages.com/badges/arisharyanto-bitlys/health.svg)](https://phpackages.com/packages/arisharyanto-bitlys)
```

###  Alternatives

[hashids/hashids

Generate short, unique, non-sequential ids (like YouTube and Bitly) from numbers

5.4k50.9M303](/packages/hashids-hashids)[yourls/yourls

Your Own URL Shortener

12.1k27.8k1](/packages/yourls-yourls)[shivella/laravel-bitly

Laravel package for generating bitly url

74840.9k1](/packages/shivella-laravel-bitly)[keiko/uuid-shortener

A simple shortener library for RFC 4122 compatible UUIDs. Change your 36 chars long UUID into it's shorter equivalent.

150223.6k3](/packages/keiko-uuid-shortener)[vinelab/url-shortener

URL shortening the easy way.

5917.2k](/packages/vinelab-url-shortener)[laracrafts/laravel-url-shortener

Powerful URL shortening tools in Laravel

97112.0k](/packages/laracrafts-laravel-url-shortener)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
