PHPackages                             laravel/database - 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. [Framework](/categories/framework)
4. /
5. laravel/database

ActiveProject[Framework](/categories/framework)

laravel/database
================

Get Laravel database for your non laravel projects. Built on top of illuminate/database to provide migration, seeding and artisan support

8.83.0(4y ago)10035.9k↓65%12[5 issues](https://github.com/Luracast/Laravel-Database/issues)2MITPHPPHP ^7.4|^8CI failing

Since May 15Pushed 4y ago6 watchersCompare

[ Source](https://github.com/Luracast/Laravel-Database)[ Packagist](https://packagist.org/packages/laravel/database)[ RSS](/packages/laravel-database/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (13)Versions (15)Used By (2)

Laravel Database
================

[](#laravel-database)

Provides full laravel database functionality for your non laravel projects adds Migration, Seeding and Artisan support to Illuminate Database.

It enables **artisan** command line tool with:

```
Available commands:

  db                Start a new database CLI session
  dump-autoload     Regenerate framework autoload files
  env               Display the current framework environment
  help              Display help for a command
  inspire           Display an inspiring quote
  list              List commands
  migrate           Run the database migrations
  serve             Serve the application on the PHP development server
  tinker            Interact with your application

db
  db:seed           Seed the database with records
  db:wipe           Drop all tables, views, and types

make
  make:command      Create a new Artisan command
  make:controller   Create a new controller class
  make:factory      Create a new model factory
  make:migration    Create a new migration file
  make:model        Create a new Eloquent model class
  make:seeder       Create a new seeder class

migrate
  migrate:fresh     Drop all tables and re-run all migrations
  migrate:install   Create the migration repository
  migrate:refresh   Reset and re-run all migrations
  migrate:reset     Rollback all database migrations
  migrate:rollback  Rollback the last database migration
  migrate:status    Show the status of each migration

vendor
  vendor:publish    Publish any publishable assets from vendor packages

```

[Laravel](https://github.com/laravel/laravel) is a web application framework with expressive, elegant syntax. We extracted the database functionality from it and made it available for other frameworks.

The [Illuminate Database](https://github.com/illuminate/database) component is a full database toolkit for PHP, providing an expressive query builder, ActiveRecord style ORM, and schema builder. It currently supports MySQL, Postgres, MSSQL Server, and SQLite. We combined it with Illuminate FileSystem and Illuminate Console to make Artisan work with database related commands.

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

[](#installation)

### Install Composer

[](#install-composer)

Laravel Database utilizes [Composer](http://getcomposer.org/) to manage its dependencies. First, download a copy of the `composer.phar`. Once you have the PHAR archive, you can either keep it in your local project directory or move to `usr/local/bin`to use it globally on your system. On Windows, you can use the Composer [Windows installer](https://getcomposer.org/Composer-Setup.exe).

### Install Laravel Database

[](#install-laravel-database)

Install Laravel Database by issuing the Composer create-project command in your terminal:

```
composer create-project laravel/database --prefer-dist

```

Usage Instructions
------------------

[](#usage-instructions)

From your public `index.php` include the `autoload.php` in `bootstrap` folder this internally uses composer autoloader. This enables lazy loading of all db related classes. It doest not boot the database engine until you call one of the DB related class.

### Adding More Components

[](#adding-more-components)

For instructions on how to add more laravel components or compatible third party service providers etc., read the comments in `app/config/app.php` file

### Practical Usage Example

[](#practical-usage-example)

- [Restler Application Eloquent Template](https://github.com/Luracast/Restler-Application/tree/eloquent) enables restler framework application's to utilize the power and elegance of *eloquent*

Official Documentation
----------------------

[](#official-documentation)

Documentation for the entire framework can be found on the [Laravel website](http://laravel.com/docs). Refer to all database related sections from there.

### Credits

[](#credits)

All the credits for the Laravel Database goes to the Laravel Framework developers. We are only putting the pieces together here

### Contributing

[](#contributing)

**Issues and pull requests relating to this integration should be filed on the [laravel/database](http://github.com/Luracast/Laravel-Framework) repository.**

### License

[](#license)

The Laravel Database is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 89.8% 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 ~175 days

Recently: every ~244 days

Total

13

Last Release

1590d ago

Major Versions

4.2.x-dev → 5.2.02016-05-15

5.8.x-dev → 8.45.12021-06-05

PHP version history (5 changes)4.2.0PHP &gt;=5.4.0

5.2.0PHP &gt;=5.5.9

5.8.21PHP ^7.1.3

8.45.1PHP ^7.2.5|^8

8.53.1PHP ^7.4|^8

### Community

Maintainers

![](https://www.gravatar.com/avatar/37124632bba55e8e9ae652c5d9fccf4779059a7693a8cce0eaee854b281c351c?d=identicon)[Arul](/maintainers/Arul)

---

Top Contributors

[![Arul-](https://avatars.githubusercontent.com/u/2255137?v=4)](https://github.com/Arul- "Arul- (123 commits)")[![logical-steps](https://avatars.githubusercontent.com/u/129956575?v=4)](https://github.com/logical-steps "logical-steps (9 commits)")[![abhishek70](https://avatars.githubusercontent.com/u/1430630?v=4)](https://github.com/abhishek70 "abhishek70 (5 commits)")

---

Tags

laraveldatabaseormsql

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k532.1M19.4k](/packages/laravel-framework)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9742.3M121](/packages/roots-acorn)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45344.0k1](/packages/pressbooks-pressbooks)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[laravel-zero/framework

The Laravel Zero Framework.

3491.5M419](/packages/laravel-zero-framework)

PHPackages © 2026

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