Skip to content

floristic-project/tb-base-rest-service-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tb-base-rest-service

A simple PHP class that helps building REST webservices

install

composer install telabotanica/tb-base-rest-service

usage

class MyService extends BaseRestServiceTB {
	public function __construct() {
		$config = array(
			"domain_root" => "http:https://sub.mydomain.tld",
			"base_uri" => "/my-service-root-folder"
		);
		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

About

A simple PHP class that helps building REST webservices

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • PHP 100.0%