Download the PHP package dfba/schema without Composer

On this page you can find all versions of the php package dfba/schema. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package schema

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.

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:

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

Injecting Dfba\Schema\Schema in your code will fetch the schema for the currently configured database. That means you'll need to have a database set up and configured ;)

Note: it's possible to read the database metadata for any open connection, not just the default Laravel one. The Dfba\Schema\Manager will happily burp out Schemas as long as you feed it PDO connections and database names:

Good plain ol' PHP (or other frameworks)

I haven't forgotten about you:

You should be aware of that the Dfba\Schema\Manager caches retrieved schemas to prevent fetching the same data multiple times. If you create new Dfba\Schema\Manager instances over and over again, you won't benefit from the cache.

Postgres, SQL Server, etc.?

Oh... yeah. MySQL and SQLite are the only databases currently implemented. I have extracted all the database specific code into it's own file, though. You want other databases implemented? Open an src/MySqlSchemaFactory.php and do it yourself. It's not that hard! You can do it! :)


All versions of schema with dependencies

PHP Build Version
Package Version
Requires nesbot/carbon Version ~1.20
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dfba/schema contains the following files

Loading the files please wait ....