Download the PHP package earthit/cmip-rest without Composer

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

Build Status

CMIP REST

Handles CMIP-style (see below) REST requests using a schema definition.

What the heck is CMIP

A convention for REST services.

URLs are of the form , hence 'CMIP'.

It also supports some other styles, mapping them to the same underlying operations.

There are five basic operations: search, get, post, put, patch, delete.

Record modifiers

Modifiers indicate how to structure the resulting objects. The modifier is a comma-separated list indicating what related objects should be returned with each record. A path like would indicate to return a list of books with each author record, whereas a path like would indicate to return a single author and publisher with each book record. The set of related objects that may be requested is defined by the service, and services may provide alternate modifiers, possibly as aliases for long lists.

Additional levels of nesting may be requested by using a dot to separate path components. e.g. to get a list of authors, each of which contains a list of all their books, each of which contains a 'publisher' record with a 'postalAddress' sub-record. The resulting JSON might look something like:

Collection filters

Except for a few reserved parameters, query parameters to a collection GET request correspond to fields of the items in the collection.

The reserved parameters are:

Field-matching parameter values may be in one of the following formats:

Search parameters will be automatically parsed as appropriate given the field that they are matching on (e.g. if there is a field, that is typed as containing a number, a seach for is interpreted as equals the number 5, not the string "5")

Collection-Table mapping

When translating a database record to its REST form, all primary key values are combined into a single , with multiple fields separated by dashes.

When interpreting an ID given in a URL or in JSON, it must be converted to its component fields. Even if there really is only a single ID field int the database record, the ID data from JSON or the URL must be converted to the correct type.

Field names may be translated between naming conventions when loading and storing. The naming convention for tables and columns in Postgres seems to be to use squishedtogetherlowercase.

In the view exposed by the REST services:

It is a goal of this project to make it simple to override these conventions and to allow special cases for different views of things. e.g. a class may be exposed as , but the backing table actually be called .

TODO: Add example of using this library in PHP.


All versions of cmip-rest with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
earthit/php-common Version ^2.0.2
earthit/schema Version ^2.0.1
earthit/storage Version ^2.0.1
earthit/dbc Version ^2.0.1
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 earthit/cmip-rest contains the following files

Loading the files please wait ....