Download the PHP package vince-scarpa/responsibleapi without Composer

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

Scrutinizer Code Quality Build Status Packagist Downloads

ResponsibleAPI RESTfull API

Responsible API is a secure PHP RESTfull application that allows easy HTTP requests from\ external requests fused by Json Web Tokens (JWT).\ ResponsibleSDK is recommended to connect to the ResponsibleAPI\

Development

Version 1.4\ This repo is open for contributions.

Features include:

  1. JWT

    • to sign each request
  2. Rate limiting

    • to limit requests to a timed window frame and options to allow unlimited requests
  3. The Leaky bucket algorithm
    • used for request throttling

Requirements

PHP 7.x\ Composer\ ResponsibleSDK [recommended]

Installation

Install composer if not already\ https://getcomposer.org/doc/00-intro.md

Install ResponsibleSDK [recommended for quick example]
https://github.com/vince-scarpa/responsibleSDK

Setup

In order for the ResponsibleAPI to initiate we need to add some basic configurations

  1. Import the example sql file
  2. Use or Create a .config file

    Setup your storage

    The ResponsibleAPI uses MySQL as Database storage, run the supplied responsible.sql file to install the required tables

Setup a config file

If you didn't get a .config file shipped in this repo then you'll need to create one.\ In the repo root directory run the following or anyway you know to create and write to files

Your file structure should look like this

Edit your new .config file and paste the below code, change all credentials to reflect your storage\ Note: The MASTER_KEY is the global "secret key" for system use to sign requests.\ To generate a strong secret I recommend using a strong password generator, this has no length limit but do note you probably want to stick to 32bytes. The only tested characters are;

Basic usage

Setting up our API server

What does the above example give us? well, nothing really...\ Just a permissions denied message and a server waiting for real requests.\ To access the ResponsibleAPI server via requests you'll need to run the ResponsibleSDK, this can be found @\ https://github.com/vince-scarpa/responsibleSDK or any other HTTP request method you're comfortable with

Options

Add options


All versions of responsibleapi with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
josegonzalez/dotenv Version dev-master
m1/env Version 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 vince-scarpa/responsibleapi contains the following files

Loading the files please wait ....