Download the PHP package fyre/forge without Composer

On this page you can find all versions of the php package fyre/forge. 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 forge

FyreForge

FyreForge is a free, open-source database forge library for PHP.

Table Of Contents

Installation

Using Composer

In PHP:

Basic Usage

Autoloading

It is recommended to bind the ForgeRegistry to the Container as a singleton.

Any dependencies will be injected automatically when loading from the Container.

Methods

Map

Map a Connection class to a Forge handler.

Use

Load the shared Connection.

Container.

Forges

Add Column

Add a column to a table.

You can also specify a Type class name as the type, which will be automatically mapped to the correct type.

Additional column options may be available depending on the connection handler.

Add Foreign Key

Add a foreign key to a table.

Foreign keys cannot be added to an existing Sqlite table.

Add Index

Add an index to a table.

Additional index options may be available depending on the connection handler.

Primary keys cannot be added to an existing Sqlite table.

Alter Table

Alter a table.

Additional table options may be available depending on the connection handler.

Build

Build a Table.

Table dependencies will be resolved automatically from the Container.

Additional table options may be available depending on the connection handler.

Create Table

Create a new table.

Additional table options may be available depending on the connection handler.

Drop Column

Drop a column from a table.

Drop Foreign Key

Drop a foreign key from a table.

Foreign keys cannot be dropped from an existing Sqlite table.

Drop Index

Drop an index from a table.

Primary keys cannot be dropped from an existing Sqlite table.

Drop Table

Drop a table.

Get Connection

Get the Connection.

Rename Column

Rename a column.

Rename Table

Rename a table.

MySQL Forges

The MySQL Forge extends the Forge class and provides additional methods and options specific to MySQL databases.

Add Column

Add a column to a table.

You can also specify a Type class name as the type, which will be automatically mapped to the correct type.

Add Index

Add an index to a table.

Alter Table

Alter a table.

Build

Build a Table.

Table dependencies will be resolved automatically from the Container.

Change Column

Change a table column.

You can also specify a Type class name as the type, which will be automatically mapped to the correct type.

Unspecified options will default to the current value.

Create Schema

Create a new schema.

Create Table

Create a new table.

Drop Primary Key

Drop a primary key from a table.

Drop Schema

Drop a schema.

Postgres

The Postgres Forge extends the Forge class and provides additional methods and options specific to Postgres databases.

Add Column

Add a column to a table.

You can also specify a Type class name as the type, which will be automatically mapped to the correct type.

Alter Table

Alter a table.

Build

Build a Table.

Table dependencies will be resolved automatically from the Container.

Change Column

Change a table column.

You can also specify a Type class name as the type, which will be automatically mapped to the correct type.

Unspecified options will default to the current value.

Create Schema

Create a new schema.

Create Table

Create a new table.

Drop Primary Key

Drop a primary key from a table.

Drop Schema

Drop a schema.

Sqlite

The Sqlite Forge extends the Forge class.

Add Column

Add a column to a table.

You can also specify a Type class name as the type, which will be automatically mapped to the correct type.

Tables

Add Column

Add a column to the table.

You can also specify a Type class name as the type, which will be automatically mapped to the correct type.

Additional column options may be available depending on the connection handler.

Add Foreign Key

Add a foreign key to the table.

Foreign keys cannot be added to an existing Sqlite table.

Add Index

Add an index to the table.

Additional index options may be available depending on the connection handler.

Primary keys cannot be added to an existing Sqlite table.

Change Column

Change a table column.

Additional column options may be available depending on the connection handler.

Column definitions can not be modified for an existing Sqlite table.

Clear

Clear the column and index data.

Column

Get a Column.

Column Names

Get the names of all table columns.

Columns

Get all table columns.

Drop

Drop the table.

Drop Column

Drop a column from the table.

Drop Foreign Key

Drop a foreign key from the table.

Foreign keys cannot be dropped from an existing Sqlite table.

Drop Index

Drop an index from the table.

Primary keys cannot be dropped from an existing Sqlite table.

Execute

Generate and execute the SQL queries.

Foreign Key

Get a table ForeignKey.

Foreign Keys

Get all table foreign keys.

Get Comment

Get the table comment.

Get Forge

Get the Forge.

Get Name

Get the table name.

Has Column

Determine whether the table has a column.

Has Foreign Key

Determine whether the table has a foreign key.

Has Index

Determine whether the table has an index.

Index

Get a table Index.

Indexes

Get all table indexes.

Rename

Rename the table.

Set Primary Key

Set the primary key.

Primary keys cannot be added to an existing Sqlite table.

SQL

Generate the SQL queries.

To Array

Get the table data as an array.

MySQL Tables

Add Column

Add a column to the table.

You can also specify a Type class name as the type, which will be automatically mapped to the correct type.

Add Index

Add an index to the table.

Change Column

Change a table column.

You can also specify a Type class name as the type, which will be automatically mapped to the correct type.

Unspecified options will default to the current value.

Get Charset

Get the table character set.

Get Collation

Get the table collation.

Get Engine

Get the table engine.

Postgres Tables

Add Column

Add a column to the table.

You can also specify a Type class name as the type, which will be automatically mapped to the correct type.

Add Index

Add an index to the table.

Change Column

Change a table column.

You can also specify a Type class name as the type, which will be automatically mapped to the correct type.

Unspecified options will default to the current value.

Sqlite Tables

Add Column

Add a column to the table.

You can also specify a Type class name as the type, which will be automatically mapped to the correct type.

Columns

Get Comment

Get the column comment.

Get Default

Get the column default value.

Get Length

Get the column length.

Get Name

Get the column name.

Get Precision

Get the column precision.

Get Table

Get the Table.

Get Type

Get the column type.

Is Auto Increment

Determine whether the column is an auto increment column.

Is Nullable

Determine whether the column is nullable.

Is Unsigned

Determine whether the column is unsigned.

To Array

Get the column data as an array.

MySQL Columns

Get Charset

Get the column character set.

Get Collation

Get the column collation.

Get Values

Get the column enum values.

Indexes

Get Columns

Get the column names.

Get Name

Get the index name.

Get Table

Get the Table.

Get Type

Get the index type.

Is Primary

Determine whether the index is primary.

Is Unique

Determine whether the index is unique.

To Array

Get the index data as an array.

Foreign Keys

Get Columns

Get the column names.

Get Name

Get On Delete

Get the delete action.

Get On Update

Get the update action.

Get Referenced Columns

Get the referenced column names.

Get Referenced Table

Get the referenced table name.

Get Table

Get the Table.

To Array

Get the foreign key data as an array.


All versions of forge with dependencies

PHP Build Version
Package Version
Requires fyre/container Version ^2.0
fyre/macro Version ^2.0
fyre/schema Version ^8.0
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 fyre/forge contains the following files

Loading the files please wait ...