Download the PHP package cakephp/datasource without Composer

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

Total Downloads

CakePHP Datasource Library

This library contains interfaces for implementing Repositories and Entities using any data source, a class for managing connections to datasources and traits to help you quickly implement the interfaces provided by this package.

Repositories

A repository is a class capable of interfacing with a data source using operations such as find, save and delete by using intermediate query objects for expressing commands to the data store and returning Entities as the single result unit of such system.

In the case of a Relational database, a Repository would be a Table, which can be return single or multiple Entity objects by using a Query.

This library exposes the following interfaces for creating a system that implements the repository pattern and is compatible with the CakePHP framework:

Additionally, this package provides a few traits and classes you can use in your own implementations:

Connections

This library contains a couple of utility classes meant to create and manage connection objects. Connections are typically used in repositories for interfacing with the actual data source system.

The ConnectionManager class acts as a registry to access database connections your application has. It provides a place that other objects can get references to existing connections. Creating connections with the ConnectionManager is easy:

When requested, the ConnectionManager will instantiate MyApp\Connections\CustomConnection by passing param1 and param2 inside an array as the first argument of the constructor.

Once configured connections can be fetched using ConnectionManager::get(). This method will construct and load a connection if it has not been built before, or return the existing known connection:

It is also possible to store connection objects by passing the instance directly to the manager:

Documentation

Please make sure you check the official API documentation


All versions of datasource with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
cakephp/core Version ^5.0
psr/simple-cache Version ^2.0 || ^3.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 cakephp/datasource contains the following files

Loading the files please wait ....