PHPackages                             dfba/schema - 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. dfba/schema

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

dfba/schema
===========

Read database schema, table and column metadata in Laravel or plain PHP.

0.1.1(9y ago)33442[1 issues](https://github.com/dfba/schema/issues)MITPHP

Since Apr 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/dfba/schema)[ Packagist](https://packagist.org/packages/dfba/schema)[ RSS](/packages/dfba-schema/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

A database schema inspector...
==============================

[](#a-database-schema-inspector)

... a very lightweight one. Iterate through all your databases, tables and columns without having to lookup the correct query syntax for your specific database system.

```
composer require dfba/schema

```

Examples
--------

[](#examples)

If you're using Laravel this will be *extra* easy:

Add the following line to the `'providers'` section of your `app.php` config file:

```
Dfba\Schema\Laravel\SchemaServiceProvider::class,
```

From this point on you can inject `Dfba\Schema\Schema` into your application. For example:

```
