Download the PHP package primo/pdo without Composer

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

Build Status GitHub issues Latest Version PHP from Travis config

primo-pdo-php

Cool Stuff With added Phinx

https://github.com/keithy/primo-pdo-php/wiki/ConfigReader-returns-an-Environment

Primary Goal:

provide a PDO interface that can use Sqlite and Mysql interchangeably in order that specs/unit-tests/acceptance-tests can be made against fast file-based SQLite fixtures.

PDO instanciation uses a Phinx compatible environment configuration, rather than the usual "dsn". The Phinx configuration file supports multiple 'environments' and additional options, including: specification of named fixtures, migrations, logging configuration, and backup locations.

Phinx may be used to provide migrations and data seeding for fixtures and production upgrades. The library includes support for creating databases from migrations, snapshotting/backups and creating fixtures from snapshots.

Secondary Goal:

Include the best and most concise features of other similar libraries.

Collate all the best knowledge available (i.e. https://phpdelusions.net/pdo )

Third Goal:

Logging as standard, to multiple targets, with sensible defaults and zero-overhead when disabled,

Features

Unified interface to the DSN string

To improve consistency between different databases and phinx we also accept an array of values as well as the standard dsn.

The array provides 'adapter' 'host' 'name', 'charset', 'user' & 'pass' as used by the Phinx tool.

Usefully where secrets are in a file (i.e. docker secrets) we also accept 'user_file' and 'pass_file'.

(have suggested this improvement to phinx)

Logging is built in (zero overhead if not enabled)

The default callback writes re-constructed SQL queries to error_log.

Can be enabled/disabled in the config file, universally (top level), or per environment.

Can be set to a callable class in the config.

Register additional callbacks at runtime as you wish.

Super-duper unified interface to queries and prepared statements

via the run() method - with added splat operator goodness!

Prepared statements can't get any easier than this!

Also

  1. If logging is enabled, queries are reconstructed from the bound variables

  2. Choice of specialized PDOStatement as a subclass or wrapper. The subclass variant doesn't support persistent connections.

  3. Bespoke option 'database' obtains a connection to an alternative database (e.g. a backup) using the same credentials given in the given phinx environment. This also enables an override for a no-database connection i.e.

  4. Helper classes for ironing out differences between databases

Helpers provide a framework for copying databases from place to place.

You can subclass helpers, providing your own utilities and call them up by adding a 'helper' option to the config.


All versions of pdo with dependencies

PHP Build Version
Package Version
No informations.
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 primo/pdo contains the following files

Loading the files please wait ....