Download the PHP package zfcampus/zf-apigility without Composer

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

ZF Apigility

Repository abandoned 2019-12-31

This repository has moved to laminas-api-tools/api-tools.

Build Status Coverage Status

Introduction

Meta-module for Zend Framework combining features from:

in order to provide a cohesive solution for exposing web-based APIs.

Also features database-connected REST resources.

Requirements

Please see the composer.json file.

Installation

Run the following composer command:

Alternately, manually add the following to your composer.json, in the require section:

And then run composer update to ensure the module is installed.

Finally, add the module name to your project's config/application.config.php under the modules key:

zf-component-installer

If you use zf-component-installer, that plugin will install zf-apigility, and all modules it depends on, as a module in your application configuration for you.

Assets

If you are using this module along with the admin and/or the welcome screen, this module contains assets that you will need to make web accessible. For that, you have two options:

Configuration

User Configuration

The top-level configuration key for user configuration of this module is zf-apigility.

db-connected

db-connected is an array of resources that can be built via the TableGatewayAbstractFactory and the DbConnectedResourceAbstractFactory when required to fulfill the use case of database table-driven resource use cases. The following example enumerates all of the required and optional configuration necessary to enable this.

Example:

System Configuration

The following configuration is required to ensure the proper functioning of this module in Zend Framework applications, and is provided by the module:

ZF Events

Listeners

ZF\Apigility\MvcAuth\UnauthenticatedListener

This listener is attached to MvcAuthEvent::EVENT_AUTHENTICATION_POST at priority 100. The primary purpose fo this listener is to override the zf-mvc-auth unauthenticated listener in order to be able to respond with an API-Problem response (vs. a standard HTTP response) on authentication failure.

ZF\Apigility\MvcAuth\UnauthorizedListener

This listener is attached to MvcAuthEvent::EVENT_AUTHORIZATION_POST at priority 100. The primary purpose of this listener is to override the zf-mvc-auth unauthorized listener in order to be able to respond with an API-Problem response (vs a standard HTTP response) on authorization failure.

ZF\Apigility\Module

This listener is attached to MvcEvent::EVENT_RENDER at priority 400. Its purpose is to conditionally attach ZF\ApiProblem\RenderErrorListener when an MvcEvent's result is a HalJsonModel or JsonModel, ensuring zf-api-problem can render a response in situations where a rendering error occurs.

ZF Services

Factories

ZF\Apigility\DbConnectedResourceAbstractFactory

This factory uses the requested name in addition to the zf-apigility.db-connected configuration in order to produce ZF\Apigility\DbConnectedResource based resources.

ZF\Apigility\TableGatewayAbstractFactory

This factory uses the requested name in addition to the zf-apigility.db-connected configuration in order to produce correctly configured Zend\Db\TableGateway\TableGateway instances. These instances of TableGateways are configured to use the proper HydratingResultSet and produce the configured entities with each row returned when iterated.

Models

ZF\Apigility\DbConnectedResource

This instance serves as the base class for database connected REST resource classes. This implementation is an extension of ZF\Rest\AbstractResourceListener and can be routed to by Apigility as a RESTful resource.


All versions of zf-apigility with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6 || ^7.0
zendframework/zend-db Version ^2.8.1
zendframework/zend-eventmanager Version ^2.6.3 || ^3.0.1
zendframework/zend-loader Version ^2.5.1
zendframework/zend-mvc Version ^2.7.9 || ^3.0.2
zendframework/zend-paginator Version ^2.7
zendframework/zend-servicemanager Version ^2.7.6 || ^3.1.1
zendframework/zend-stdlib Version ^2.7.7 || ^3.0.1
zfcampus/zf-api-problem Version ^1.2.1
zfcampus/zf-apigility-provider Version ^1.2
zfcampus/zf-content-negotiation Version ^1.2.2
zfcampus/zf-content-validation Version ^1.3.3
zfcampus/zf-hal Version ^1.4.1
zfcampus/zf-mvc-auth Version ^1.4.1
zfcampus/zf-oauth2 Version ^1.4
zfcampus/zf-rest Version ^1.3.1
zfcampus/zf-rpc Version ^1.3
zfcampus/zf-versioning Version ^1.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 zfcampus/zf-apigility contains the following files

Loading the files please wait ....