Download the PHP package bauer01/unimapper-nette without Composer

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

Unimapper Nette extension

Build Status

Official Unimapper extension for Nette framework.

Install

Nette 2.1 and higher

Register extension in config.neon.

Nette 2.0

Register extension in app/bootstrap.php.

Configuration

API

Creating new API for your application is very easy, all you need is presenter for every entity you have.

Remember that every API presenter should always extend UniMapper\Nette\Api\Presenter.

Now you can call standard API methods like:

GET

Response

/api/entity/id

Get a single record.

/api/entity

Get all records.

PUT

/api/entity

Update all records with JSON data stored in request body. Filtering can be set and response body contains number of affected records.

Response

/api/entity/id

Update single record with JSON data stored in request body.

Response

POST

Create new record with JSON data stored in request body and primary value of new entity returned in response body.

/api/entity

Response

DELETE

/api/entity

Delete all records returned body contains number of deleted records.

Response

/api/entity/id

Delete single record.

Response

Custom API methods

You can even define your custom method.

Then you can make a requests like /api/entity/1?action=yourCustomMehod.

Filtering data

Filter can be set as a GET parameter where in URL. It should be here a valid JSON format as described here.

Error response

If some bad request detected or an error occurred the returned response can be like this:

Generating links

In your templates just use standard Nette link macro.

Usage

You can even build another applications using this API, just register an official API adapter class UniMapper\Nette\Api\Adapter in your config.neon.

Custom request factory

For easier API queries you can register factory interface as a dynamic service in your config.neon.

Usage in your reopistory can look like this:


All versions of unimapper-nette with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
ext-curl Version *
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 bauer01/unimapper-nette contains the following files

Loading the files please wait ....