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 yesterday

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 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

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

1300d 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

[nativephp/mobile

NativePHP for Mobile

1.1k75.1k96](/packages/nativephp-mobile)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M167](/packages/spatie-laravel-health)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5022.0k](/packages/simplestats-io-laravel-client)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)

PHPackages © 2026

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