Download the PHP package presentator/api without Composer

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

Presentator v2 REST API Yii2

[!IMPORTANT] This repo is for the older Presentator v2 and it is no longer maintained.

Presentator v2 REST API server implementation, written in PHP and based on Yii2.

Detailed API reference could be found here - https://presentator.io/docs.

This repository is READ-ONLY. Report issues and send pull requests in the main Presentator repository.

Requirements

Installation

Before getting started make sure that you have checked the project requirements and installed Composer.

  1. Clone or download the repo.

    For security reasons, if you are using a shared hosting service it is recommended to place the project files outside from your default public_html(www) directory!

  2. Setup a vhost/server address (eg. http://api.presentator.local/) and point it to web/.

    By default a generic .htaccess file will be created for you after initialization. If you are using nginx, you could check the following sample configuration.

  3. Run the following commands:

  4. Create a new database (with utf8mb4_unicode_ci collation) and adjust the db, mailer and other component configurations in config/base-local.php accordingly.

    All available app components with their default values could be found in config/base.php.

  5. Adjust the application parameters in config/params-local.php..

    All available app parameters with their default values could be found in config/params.php.

  6. Apply DB migrations.

  7. (optional) Setup a cron task to process unread screen comments:

That's it! You should be able to make HTTP requests to the previously defined server address.

Additional console commands you may find useful:

Development

Running tests

Presentator uses Codeception as its primary test framework.

Running tests require an additional database, which will be cleaned up between tests. Create a new database and edit the db component settings in config/test-local.php and then run the following console commands:

Currently only functional tests are available.

Conventions

The project makes use of the following conventions:


All versions of api with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
yiisoft/yii2 Version ~2.0.16
yiisoft/yii2-swiftmailer Version ~2.0.0 || ~2.1.0
yiisoft/yii2-authclient Version ~2.1
yii2tech/ar-position Version ~1.0
creocoder/yii2-flysystem Version ^0.9.0
intervention/image Version ^2.4.2
google/apiclient Version ^2.0
firebase/php-jwt Version ^5.2
league/flysystem-aws-s3-v3 Version ^1.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 presentator/api contains the following files

Loading the files please wait ....