Download the PHP package ofmadsen/livid without Composer

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

Livid

Livid is a Data Mapper (ORM) for PHP.

Build Status Codacy Badge Codacy Badge

Installation

Install the latest version with:

Features

Basic usage

Bootstrapping:

Mapper:

Note that Livid\Mapper do not define a constructor method and mappers are therefore free to have anything injected. Injecting mappers into other classes are relatively cheap as the connection to the database are not established until needed and reused across mappers.

Fetch data in defined entities

Livid support entities with public, protected and private properties. The naming convention for entity properties in Livid is camel case and as such any column name that contains underscore are converted.

Example entity:

Example mapper:

As entities are simple container objects they can contain whatever methods and logic that suits the needs of the application.

Use multiple databases

Livid supports connections to multiple databases. Setting the database without a name will use the default name. Mappers that uses non-default databases must define the constant DATABASE containing the name that the database was set with.

If multiple mappers uses the non-default database it might be easier to maintain if they extend a common class that defines the database name.

Supported databases

Only a subset of the PDO supported databases are available for this library at the moment. If your preferred database is not present on the list below, feel free to contribute to the project.

MySQL

For MySQL database use Livid\Config\MySQLConfig.

SQLite3

For SQLite3 database use Livid\Config\SQLite3Config.

Interface

Available methods on Livid\Mapper:

Available methods on Livid\Query:

Contribution

All are welcome to contribute to Livid. Please get in touch before making large features and/or major refactoring. Needlessly to say the coding style must be followed and full test coverage is required.

License

Livid is available under the MIT License - see the LICENSE file for details.


All versions of livid with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.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 ofmadsen/livid contains the following files

Loading the files please wait ....