2017 © Pedro Peláez
 

library clever

image

clever/clever

  • Thursday, July 5, 2018
  • by clever
  • Repository
  • 49 Watchers
  • 16 Stars
  • 34,892 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 11 Forks
  • 3 Open issues
  • 14 Versions
  • 13 % Grown

The README.md

Notice

This repo is no longer maintained by Clever. We provide the Swagger definitions at https://github.com/Clever/swagger-api., (*1)

clever-php

The Clever API, (*2)

This PHP package is automatically generated by the Swagger Codegen project:, (*3)

  • API version: 2.0.0
  • Build package: io.swagger.codegen.languages.PhpClientCodegen

Requirements

PHP 5.4.0 and later, (*4)

API Documentation

View more detailed documentation here, (*5)

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:, (*6)

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/clever/clever-php"
        }
    ],
    "require": {
       "clever/clever": "*"
}
}

Then run composer install, (*7)

Note that it is necessary to include the vcs link to be sure that you are pulling from this repo., (*8)

The package manager for composer currently does not point to the correct repo for clever/clever-php., (*9)

We are published as clever/clever., (*10)

Manual Installation

Download the files and include autoload.php:, (*11)

require_once('/path/to/clever-php/autoload.php');

Tests

To run the unit tests:, (*12)

make test

Getting Started

Please follow the installation procedure and then run the following:, (*13)

getConfig()->setAccessToken('TEST_TOKEN');

try {
    $result = $api_instance->getStudents();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DataApi->getStudents: ', $e->getMessage(), PHP_EOL;
}

?>

Updating the Library

  1. Git clone swagger-codegen (https://github.com/swagger-api/swagger-codegen), (*14)

  2. Git clone Clever's swagger-api repo (https://github.com/Clever/swagger-api), (*15)

  3. Run this command in the swagger-codegen repo, (*16)

java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i $PATH_TO_SWAGGER_API_REPO/v2.0-client.yml -c $PATH_TO_THIS_REPO/override/config.json -l php -o $PATH_TO_THIS_REPO --additional-properties packageVersion=$VERSION
  1. Run make override to copy over the override files

Publishing

  1. Update CHANGELOG
  2. git tag -a vX.X.X
  3. git push --tags origin HEAD:master
  4. Log into Packagist (credentials are in 1PFT) and click "Update"

The Versions

05/07 2018

dev-master

9999999-dev http://swagger.io

  Sources   Download

proprietary

The Requires

 

The Development Requires

api php swagger sdk

05/07 2018

v1.0.1

1.0.1.0 http://swagger.io

  Sources   Download

proprietary

The Requires

 

The Development Requires

api php swagger sdk

16/05 2018

v1.0.1.x-dev

1.0.1.9999999-dev http://swagger.io

  Sources   Download

proprietary

The Requires

 

The Development Requires

api php swagger sdk

14/12 2017

v1.0.0

1.0.0.0 http://swagger.io

  Sources   Download

proprietary

The Requires

 

The Development Requires

api php swagger sdk

06/11 2017

dev-swaggered

dev-swaggered http://swagger.io

  Sources   Download

proprietary

The Requires

  • php >=5.4
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php swagger sdk

19/05 2017

v0.6.2

0.6.2.0 https://clever.com

Official Clever PHP library

  Sources   Download

The Requires

 

The Development Requires

28/04 2017

v0.6.1

0.6.1.0 https://clever.com

Official Clever PHP library

  Sources   Download

The Requires

 

The Development Requires

13/04 2017

v0.6.0

0.6.0.0 https://clever.com

Official Clever PHP library

  Sources   Download

The Requires

 

The Development Requires

20/01 2017

v0.5.0

0.5.0.0 https://clever.com

Official Clever PHP library

  Sources   Download

The Requires

 

The Development Requires

03/09 2015

dev-fix-demo-data-test

dev-fix-demo-data-test https://clever.com

Official Clever PHP library

  Sources   Download

The Requires

 

The Development Requires

09/01 2015

dev-DEVREL-32_use_relative_links_for_pagination

dev-DEVREL-32_use_relative_links_for_pagination https://clever.com

Official Clever PHP library

  Sources   Download

The Requires

 

The Development Requires

06/10 2014

v0.4.0

0.4.0.0 https://clever.com

Official Clever PHP library

  Sources   Download

The Requires

 

The Development Requires

25/08 2014

v0.3.0

0.3.0.0 https://clever.com

Official Clever PHP library

  Sources   Download

The Requires

 

The Development Requires

25/04 2014

v0.2.0

0.2.0.0 http://getclever.com/

Clever PHP library

  Sources   Download

The Requires

  • php >=5.2