PHPackages                             dynamicbits/larabit - 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. [Database &amp; ORM](/categories/database)
4. /
5. dynamicbits/larabit

ActiveLibrary[Database &amp; ORM](/categories/database)

dynamicbits/larabit
===================

Larabit is a robust Laravel package designed to streamline database interactions within Laravel applications. It offers a foundational service equipped with a comprehensive set of convenient methods, empowering developers to efficiently handle database operations. The package also provides authenticaion with 2FA.

v1.2.2(1y ago)04001PHPPHP ^8.2

Since Dec 5Pushed 1y agoCompare

[ Source](https://github.com/DynamicBitsTech/Larabit)[ Packagist](https://packagist.org/packages/dynamicbits/larabit)[ RSS](/packages/dynamicbits-larabit/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (23)Used By (0)

Larabit
=======

[](#larabit)

Larabit is a robust Laravel package designed to offer a foundational service equipped with a comprehensive set of convenient methods, empowering developers to efficiently handle database operations.

Requirements
------------

[](#requirements)

**Requirement****Version****PHP**8.2 or greater**Laravel**11 or greaterInstallation
------------

[](#installation)

You can install Larabit via Composer. Run the following command:

```
composer require dynamicbits/larabit
```

Usage
-----

[](#usage)

### Generate Service Layer

[](#generate-service-layer)

Run the `larabit:service` artisan command to generate a service layer for a specified model. Example:

```
php artisan larabit:service Product
```

### Authentication Setup

[](#authentication-setup)

Run the `larabit:auth` command to create an AuthController and the related authentication services. Note that it does not generate any views, so you'll need to configure them yourself:

```
php artisan larabit:auth
```

### API Authentication

[](#api-authentication)

To set up API authentication, run the following command:

```
php artisan larabit:auth-api
```

- This command will create API routes, requests, and controllers.
- The API supports Laravel Sanctum or Passport. Ensure you have either one installed for proper functioning.
- The User model must implement the HasApiTokens trait.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance45

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 67.6% 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 ~22 days

Recently: every ~45 days

Total

22

Last Release

425d ago

Major Versions

v0.9 → v1.02024-09-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ca8de17ecbe779018e1884a1de2bba9a9715895c59163ac1f30347be8ba2603?d=identicon)[dbits.danish](/maintainers/dbits.danish)

---

Top Contributors

[![dbitsdanish](https://avatars.githubusercontent.com/u/138978909?v=4)](https://github.com/dbitsdanish "dbitsdanish (23 commits)")[![DaniCodeSys](https://avatars.githubusercontent.com/u/181320852?v=4)](https://github.com/DaniCodeSys "DaniCodeSys (11 commits)")

### Embed Badge

![Health badge](/badges/dynamicbits-larabit/health.svg)

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

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11120.2M21](/packages/anourvalar-eloquent-serialize)[overtrue/laravel-versionable

Make Laravel model versionable.

585308.0k5](/packages/overtrue-laravel-versionable)[abbasudo/laravel-purity

elegant way to add filter and sort in laravel

514330.5k1](/packages/abbasudo-laravel-purity)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)[dragon-code/laravel-deploy-operations

Performing any actions during the deployment process

240173.5k2](/packages/dragon-code-laravel-deploy-operations)[stayallive/laravel-eloquent-observable

Register Eloquent model event listeners just-in-time directly from the model.

2928.9k7](/packages/stayallive-laravel-eloquent-observable)

PHPackages © 2026

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