Download the PHP package fathomminds/php-rest-models without Composer

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

Scrutinizer Code Quality Code Coverage Build Status Code Climate Issue Count

PHP REST MODELS

Framework independent PHP REST models with schema validation and multiple database engine support.

IMPORTANT!

Clusterpoint support is discontinued. Currently only the MongoDB support is actively developed and supported. DynamoDB and Clusterpoint codes are deprecated and will be removed.

Database engines supported

Usage

  1. DEFINE THE SCHEMA: Define schema in a single location How to create a schema?
  2. DEFINE THE REST OBJECT: Set the corresponding Schema and define the database properties (table name, primary key, indexes) How to create a REST Object?
  3. DEFINE THE MODEL: Simply set the corresponding REST Object How to create a Model?
  4. IMPLEMENT BUSINESS LOGIC: the package implements the CRUD operations, so your Model is clean and you can focus on the application behaviour How to implement the business logic?
  5. USE THE MODELS in your application How to use the Models?
  6. ENABLE IDE AUTOCOMPLETION How to enable IDE autocompletion?
  7. DO SIMPLE PAGINATION AND FILTERING How to do simple pagination and filtering
  8. EXECUTE CUSTOM QUERIES How to execute custom queries

Features

Model API reference

Model API

Finder API

Example application

Todo Application: REPOURL

Requirements

Install

composer require fathomminds/php-rest-models

You must install the Database Engine specific packages in your project. (Left out from dependencies intentionally to allow installing only the required one.)

If you use Clusterpoint: composer require clusterpoint/php-client-api-v4

If you use DynamoDb: composer require aws/aws-sdk-php

If you use MongoDB: composer require mongodb/mongodb

Configuration

Contribution

Running tests

Clone the repository and install dependencies:

composer install

Run unit tests:

vendor/bin/phpunit

Test coverage report is logged to folder: log

Run integration tests:

vendor/bin/phpunit --configuration phpunit-integration-test.xml

Integration tests will interact with real databases. You need to follow the configuration steps to be able to run these tests. The tests use the example FooSchema class for both databases. Please make sure the required objects (tables and indexes) are created before executing integration tests.

HOW TO

License

Licensed under the MIT license. See LICENSE


All versions of php-rest-models with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
vlucas/phpdotenv Version ~2.2
guzzlehttp/guzzle Version ^6.2
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 fathomminds/php-rest-models contains the following files

Loading the files please wait ....