2017 © Pedro Peláez
 

library tb-base-rest-service

A simple PHP class that helps building REST webservices

image

telabotanica/tb-base-rest-service

A simple PHP class that helps building REST webservices

  • Friday, March 9, 2018
  • by Tela Botanica
  • Repository
  • 2 Watchers
  • 0 Stars
  • 52 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 24 % Grown

The README.md

tb-base-rest-service

A simple PHP class that helps building REST webservices, (*1)

install

composer install telabotanica/tb-base-rest-service

usage

class MyService extends BaseRestServiceTB {
    public function __construct() {
        $config = array(
            "domain_root" => "http://sub.mydomain.tld",
            "base_uri" => "/my-service-root-folder",
            "first_resource_separator" => "/"
        );
        parent::__construct($config);
    }

    protected function get() {
        // ...
    }

    protected function post() {
        // ...
    }
}

config parameters

mandatory

  • domain_root : root URL of your server
  • base_uri : base path of your webservice

non-mandatory

  • first_resource_separator : first character following your base_uri (typically "/" or ":", defaults to "/")

The Versions

09/03 2018

dev-master

9999999-dev https://github.com/telabotanica/tb-base-rest-service

A simple PHP class that helps building REST webservices

  Sources   Download

GPLv3

The Requires

  • php >=5.5.0

 

by Mathias Chouet

rest webservice telabotanica tela-botanica tela botanica

09/03 2018

0.1.4

0.1.4.0 https://github.com/telabotanica/tb-base-rest-service

A simple PHP class that helps building REST webservices

  Sources   Download

GPLv3

The Requires

  • php >=5.5.0

 

by Mathias Chouet

rest webservice telabotanica tela-botanica tela botanica

04/11 2016

0.1.3

0.1.3.0 https://github.com/telabotanica/tb-base-rest-service

A simple PHP class that helps building REST webservices

  Sources   Download

GPLv3

The Requires

  • php >=5.5.0

 

by Mathias Chouet

rest webservice telabotanica tela-botanica tela botanica

03/11 2016

0.1b

0.1.0.0-beta https://github.com/telabotanica/tb-base-rest-service

A simple PHP class that helps building REST webservices

  Sources   Download

GPLv3

The Requires

  • php >=5.5.0

 

by Mathias Chouet

rest webservice telabotanica tela-botanica tela botanica

15/04 2016

0.1a

0.1.0.0-alpha https://github.com/telabotanica/tb-base-rest-service

A simple PHP class that helps building REST webservices

  Sources   Download

GPLv3

The Requires

  • php >=5.5.0

 

by Mathias Chouet

rest webservice telabotanica tela-botanica tela botanica