PHPackages                             mberatsanli/laravel-adapty - 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. mberatsanli/laravel-adapty

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

mberatsanli/laravel-adapty
==========================

Laravel Adapty

1.0.6(3y ago)21.0k1MITPHPPHP ^8.1

Since Sep 12Pushed 2y ago2 watchersCompare

[ Source](https://github.com/mberatsanli/laravel-adapty)[ Packagist](https://packagist.org/packages/mberatsanli/laravel-adapty)[ Docs](https://github.com/mberatsanli/laravel-adapty)[ RSS](/packages/mberatsanli-laravel-adapty/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (13)Versions (8)Used By (0)

Laravel Adapty
==============

[](#laravel-adapty)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b055da6c6e70bf2ffbaae0fa98bdf43ebd84fd9d43b756c29d4046b85394e8c1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d626572617473616e6c692f6c61726176656c2d6164617074792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mberatsanli/laravel-adapty)[![GitHub Tests Action Status](https://camo.githubusercontent.com/ac226ad8edc20041a23b9f87a58daae72721fac93ed37ac13b50f988788297a8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d626572617473616e6c692f6c61726176656c2d6164617074792f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/mberatsanli/laravel-adapty/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/2b4c5c29a306b0f95d27e5311f6e7990597f55d575e8fc84d4165230b27527b7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d626572617473616e6c692f6c61726176656c2d6164617074792f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/mberatsanli/laravel-adapty/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/0e46dc9a9b859a5a9ece3c9b605612a68e5edff25331ea664d0f96dc9fcd66bf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d626572617473616e6c692f6c61726176656c2d6164617074792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mberatsanli/laravel-adapty)

A Laravel package for the Adapty SDK. **Please feel free to contribute...**

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require mberatsanli/laravel-adapty
```

You can publish the config file with:

```
php artisan vendor:publish --tag="adapty-config"
```

This is the contents of the published config file:

```
return [
    'base_url' => env('ADAPTY_BASE_URL', 'https://api.adapty.io/api/v1/sdk'),

    'secret_token' => env('ADAPTY_SECRET_TOKEN'), // Your adapty secret token.

    'webhook' => [
        'path' => env('ADAPTY_WEBHOOK_PATH', '/adapty/webhook'), // webhook endpoint's path
        'middleware' => [] // If you want to use middleware on the webhook endpoint, you can adjust that configuration
    ],
];
```

Usage
-----

[](#usage)

```
// Create a user
$createResponse = \MBS\LaravelAdapty\LaravelAdapty::createUser('');

// Get information about the user
$informationResponse = \MBS\LaravelAdapty\LaravelAdapty::userInformation('');

// Set attributes to the user
$setAttributesResponse = \MBS\LaravelAdapty\LaravelAdapty::setUserAttributes('', [
    // see https://docs.adapty.io/docs/server-side-api-specs#set-the-users-attribute
]);

// see https://docs.adapty.io/docs/getting-started-with-server-side-api#case-2-grant-a-subscription
$grantRequest = \MBS\LaravelAdapty\Http\Requests\GrantSubscriptionRequest::make(7, ....);
$grantResponse = \MBS\LaravelAdapty\LaravelAdapty::grantSubscription('', $grantRequest);

// See https://docs.adapty.io/docs/server-side-api-specs#revoke-subscription-from-a-user
$revokeSubscriptionResponse = \MBS\LaravelAdapty\LaravelAdapty::revokeSubscription(profileId: '', accessLevel: 'premium', isRefund: )
```

Testing
-------

[](#testing)

**No tests available for now**

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please feel free to contributing...

Credits
-------

[](#credits)

- [Melih Berat ŞANLI](https://github.com/mberatsanli)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~15 days

Recently: every ~22 days

Total

7

Last Release

1248d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a3e5fcb9f3294e648a54c674daf3d1a54d4d79b14b32409601fc821a45d56fb4?d=identicon)[mberatsanli](/maintainers/mberatsanli)

---

Top Contributors

[![mberatsanli](https://avatars.githubusercontent.com/u/15654470?v=4)](https://github.com/mberatsanli "mberatsanli (28 commits)")

---

Tags

adaptylaravelphplaravellaravel-adaptymberatsanli

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/mberatsanli-laravel-adapty/health.svg)

```
[![Health](https://phpackages.com/badges/mberatsanli-laravel-adapty/health.svg)](https://phpackages.com/packages/mberatsanli-laravel-adapty)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[maestroerror/laragent

Power of AI Agents in your Laravel project

630106.4k](/packages/maestroerror-laragent)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[spatie/laravel-rdap

Perform RDAP queries in a Laravel app

72108.3k2](/packages/spatie-laravel-rdap)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)

PHPackages © 2026

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