Download the PHP package kafoso/doctrine-firebird-driver without Composer

On this page you can find all versions of the php package kafoso/doctrine-firebird-driver. 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 doctrine-firebird-driver

Doctrine Firebird driver

Firebird driver for the Doctrine DBAL.

This library is completely separate (i.e. abstracted away) from the core Doctrine DBAL library. I.e. it is fully a plug-in.

Requirements

To utilize this library in your application code, the following is required:

1 Only needed on remote/guest OS, e.g. a remote Ubuntu server or a VM installed through Docker, Vagrant, or XAMPP.

License & Disclaimer

See LICENSE file. Basically: Use this library at your own risk.

Limitations of Schema Manager

This library does not fully support generation through the Schema Manager, i.e.:

  1. Generation of database tables, views, etc. from entities.
  2. Generation of entities from database tables, views, etc.

Reasons for not investing time in schema generation include that Firebird does not allow renaming of tables, which in turn makes automated schema updates annoying and over-complicated. Better results are probably achieved by writing manual migrations.

Installation

Via Composer (kafoso/doctrine-firebird-driver):

composer install kafoso/doctrine-firebird-driver

Via Github:

git clone [email protected]:kafoso/doctrine-firebird-driver.git

Configuration

Manual configuration

For example of configuration in PHP, see tests/tests/Test/Integration/AbstractIntegrationTest.php (in the method setUp).

Additional help may be found at: https://www.doctrine-project.org/projects/doctrine-orm/en/2.5/reference/advanced-configuration.html

Symfony configuration (YAML)

This driver may be used like any other Doctrine DBAL driver in Symfony. However, the driver_class option must be specified instead of simply driver. This is due to the driver not being part of the core Doctrine DBAL library.

Sample YAML configuration:

Tests

Test/development requirements

To run tests, fix bugs, provide features, etc. the following is required:

You may of course install everything manually using your own VM setup. For help and a stack list (required apt-get packages), see the Vagrantfile.

Installation to run tests

A few steps are required to run all tests. Unit tests (tests/tests/Test/Integration) require the following because they test against a running Firebird database in the VM:

  1. vagrant up
    Install/provision the VM.
  2. vagrant ssh
  3. sudo su
  4. apt-get -y install firebird2.5-superclassic
    You will be prompted to install the database using a password. Please provide this password: 88fb9f307125cc397f70e59c749715e1. It is re-used when connecting through the DBAL later on.
  5. dpkg-reconfigure firebird2.5-superclassic
    Starts the Firebird database server. Provide same password as above.

Reference: https://firebirdsql.org/manual/ubusetup.html

Running tests

Due to the database being created by the PHP bootstrap script on the fly, root is needed to run the tests on the VM.

  1. vagrant ssh
  2. sudo su
  3. apt-get install zip -y (for when installing composer packages)
  4. Install composer (on guest OS). Follow these instructions: https://getcomposer.org/download/
  5. mv composer.phar /usr/bin/composer
  6. cd /var/git/kafoso/doctrine-firebird-driver
  7. composer install1
  8. cd /var/git/kafoso/doctrine-firebird-driver/tests
  9. php ../bin/phpunit tests

1 Composer will say you shouldn't run it as root/super user. This is techically true, but it's fine in the VM.

Credits

Authors

Acknowledgements

https://github.com/doctrine/dbal

Fundamental Doctrine DBAL implementation. The driver and platform logic in this library is based on other implementations in the core library, largely \Doctrine\DBAL\Driver\PDOOracle\Driver and \Doctrine\DBAL\Platforms\OraclePlatform, and their respective parent classes.

https://github.com/helicon-os/doctrine-dbal

Whilst a great inspiration for this library - and we very much appreciate the work done by the authors - the library has a few flaws and limitations regarding the Interbase Firebird driver logic:

https://github.com/ISTDK/doctrine-dbal

A fork of https://github.com/helicon-os/doctrine-dbal with a few improvements and fixes.

https://firebirdsql.org/

The main resource for Firebird documentation, syntax, downloads, etc.


All versions of doctrine-firebird-driver with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
doctrine/dbal Version ^2.9.3
doctrine/orm Version 2.7.*
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 kafoso/doctrine-firebird-driver contains the following files

Loading the files please wait ....