PHPackages                             akkyoh/socialite\_bitbucket - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. akkyoh/socialite\_bitbucket

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

akkyoh/socialite\_bitbucket
===========================

Bitbucket OAuth2 Provider for Laravel Socialite

1.0.0(9y ago)017PHPPHP ^5.6 || ^7.0

Since Jul 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/akkyoh/socialite_bitbucket)[ Packagist](https://packagist.org/packages/akkyoh/socialite_bitbucket)[ RSS](/packages/akkyoh-socialite-bitbucket/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Bitbucket OAuth2 Provider for Laravel Socialite
===============================================

[](#bitbucket-oauth2-provider-for-laravel-socialite)

[![Latest Stable Version](https://camo.githubusercontent.com/bad83053d8b4e7c98dd67c10c1adefb39bb0e067d3dcc245204e8ed3092b74b4/68747470733a2f2f706f7365722e707567782e6f72672f616b6b796f682f736f6369616c6974655f6269746275636b65742f762f737461626c652e737667)](https://packagist.org/packages/akkyoh/socialite_bitbucket)[![Total Downloads](https://camo.githubusercontent.com/bfe2b7c40c0a40beb17a38e020292a0df495dbdfe0cccf1602c24463285acc1a/68747470733a2f2f706f7365722e707567782e6f72672f616b6b796f682f736f6369616c6974655f6269746275636b65742f646f776e6c6f6164732e737667)](https://packagist.org/packages/akkyoh/socialite_bitbucket)[![Latest Unstable Version](https://camo.githubusercontent.com/01db35262b63b2ddcac2e84ecd349cb5de4690e3b91a143c54adf059b8d2b757/68747470733a2f2f706f7365722e707567782e6f72672f616b6b796f682f736f6369616c6974655f6269746275636b65742f762f756e737461626c652e737667)](https://packagist.org/packages/akkyoh/socialite_bitbucket)

Install
-------

[](#install)

**1. COMPOSER**

```
composer require akkyoh/socialite_bitbucket

```

**2. SERVICE PROVIDER**

- Remove Laravel\\Socialite\\SocialiteServiceProvider from your providers\[\] array in config\\app.php if you have added it already.
- Add \\SocialiteProviders\\Manager\\ServiceProvider::class to your providers\[\] array in config\\app.php.

```
// For example
'providers' => [
    // a whole bunch of providers
    // remove 'Laravel\Socialite\SocialiteServiceProvider',
    \SocialiteProviders\Manager\ServiceProvider::class, // add
];

```

- If you would like to use the Socialite Facade, you need to [install it](https://laravel.com/docs/5.0/authentication#social-authentication).

**3. ADD THE EVENT AND LISTENERS**

- Add SocialiteProviders\\Manager\\SocialiteWasCalled event to your listen\[\] array in &lt;app\_name&gt;/Providers/EventServiceProvider.
- Add your listeners (i.e. the ones from the providers) to the SocialiteProviders\\Manager\\SocialiteWasCalled\[\] that you just created.
- The listener that you add for this provider is 'Akkyoh\\SocialiteBitbucket\\BitbucketExtendSocialite@handle',.
- Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.

```
// For example
protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // add your listeners (aka providers) here
        'Akkyoh\SocialiteBitbucket\BitbucketExtendSocialite@handle',
    ],
];

```

**4. ENVIRONMENT VARIABLES**

If you add environment values to your .env as exactly shown below, **you do not need to add an entry to the services array**.

###### APPEND PROVIDER VALUES TO YOUR .ENV FILE

[](#append-provider-values-to-your-env-file)

```
// other values above
BITBUCKET_KEY=yourkeyfortheservice
BITBUCKET_SECRET=yoursecretfortheservice
BITBUCKET_REDIRECT_URI=https://example.com/login

```

###### ADD TO CONFIG/SERVICES.PHP.

[](#add-to-configservicesphp)

You do not need to add this if you add the values to the .env exactly as shown above. The values below are provided as a convenience in the case that a developer is not able to use the .env method

```
'bitbucket' => [
    'client_id' => env('BITBUCKET_KEY'),
    'client_secret' => env('BITBUCKET_SECRET'),
    'redirect' => env('BITBUCKET_REDIRECT_URI'),
],

```

USAGE
=====

[](#usage)

You should now be able to use it like you would regularly use Socialite (assuming you have the facade installed):

```
return Socialite::driver('bitbucket') -> redirect();

```

RESOURCES
=========

[](#resources)

[Socialite Providers](http://socialiteproviders.github.io/)[Laravel Socialite Docs](https://github.com/laravel/socialite)

###  Health Score

25

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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

3522d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/810b1e51c01b2fd45ca7bd178621356768856ee4cc876dc20e59d6eba84a262f?d=identicon)[akkyoh](/maintainers/akkyoh)

---

Top Contributors

[![akkyoh](https://avatars.githubusercontent.com/u/3147258?v=4)](https://github.com/akkyoh "akkyoh (1 commits)")

### Embed Badge

![Health badge](/badges/akkyoh-socialite-bitbucket/health.svg)

```
[![Health](https://phpackages.com/badges/akkyoh-socialite-bitbucket/health.svg)](https://phpackages.com/packages/akkyoh-socialite-bitbucket)
```

###  Alternatives

[socialiteproviders/apple

Apple OAuth2 Provider for Laravel Socialite

588.1M5](/packages/socialiteproviders-apple)[socialiteproviders/microsoft-azure

Microsoft Azure OAuth2 Provider for Laravel Socialite

575.7M16](/packages/socialiteproviders-microsoft-azure)[socialiteproviders/vkontakte

VKontakte OAuth2 Provider for Laravel Socialite

871.0M7](/packages/socialiteproviders-vkontakte)[socialiteproviders/microsoft

Microsoft OAuth2 Provider for Laravel Socialite

315.7M11](/packages/socialiteproviders-microsoft)[socialiteproviders/laravelpassport

LaravelPassport OAuth2 Provider for Laravel Socialite

621.2M6](/packages/socialiteproviders-laravelpassport)[socialiteproviders/discord

Discord OAuth2 Provider for Laravel Socialite

442.0M16](/packages/socialiteproviders-discord)

PHPackages © 2026

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