Download the PHP package phuze/php-cosmos without Composer

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

php-cosmos

Tests Latest Version Total Downloads

A lightweight PHP client for Azure Cosmos DB, supporting PHP 7.0 and later.

Installation

Install phuze/php-cosmos in your project:

To stay on 3.x, pin the version:

Requirements

PHP version Guzzle version
7.0 to 7.2.4 6
7.2.5 to 7.3 6 or 7
7.4 and later, including 8.x 6, 7 or 8

Usage

See the documentation for more examples:

Changelog

v4.1.0

v4.0.1

v4.0.0

This release changes some existing behavior. See Upgrading from v3.

Upgrading from v3

Most apps only need to change phuze/php-cosmos to ^4.0 in composer.json. Check each of these in case it applies to you:

v3.0.6

v3.0.5

v3.0.4

v3.0.3

v3.0.2

v3.0.1

v3.0.0

Notes

Development

The tests send their requests to a fake Cosmos DB, so no Azure account is needed. They're plain PHP rather than PHPUnit, so the same tests run on every supported PHP version. Each file in tests/cases covers one area, and any notice, warning or deprecation raised by the library fails the run.

GitHub Actions runs the tests on every push and pull request, on each PHP version from 7.0 to 8.5, with every Guzzle version that PHP version supports. Releases are only tagged from a commit that passes.

Contributing

Bug reports, fixes and improvements are welcome.

Reporting a bug or requesting a feature: open an issue with your PHP and Guzzle versions, what you did, and what you expected to happen.

Submitting a change:

  1. Fork the repository and create a branch from main
  2. Make your change, keeping it compatible with PHP 7.0 (no typed properties, nullable types, arrow functions or other syntax newer than PHP 7.0)
  3. Add or update a test in tests/cases that covers it
  4. Run composer test and make sure everything passes
  5. Open a pull request against main, explaining what changed and why

GitHub Actions runs the tests on your pull request, and it's only merged once they pass. If your change affects how the library is used, please also update the changelog above and the relevant page in docs/.


All versions of php-cosmos with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
ext-curl Version *
ext-json Version *
guzzlehttp/guzzle Version ^6.0 || ^7.0 || ^8.0
psr/log Version ^1.0 || ^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 phuze/php-cosmos contains the following files

Loading the files please wait ...