PHPackages                             telabotanica/tb-base-rest-service - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. telabotanica/tb-base-rest-service

ActiveLibrary[HTTP &amp; Networking](/categories/http)

telabotanica/tb-base-rest-service
=================================

A simple PHP class that helps building REST webservices

0.1.4(8y ago)11363GPLv3PHPPHP &gt;=5.5.0

Since Apr 15Pushed 8y ago2 watchersCompare

[ Source](https://github.com/telabotanica/tb-base-rest-service-php)[ Packagist](https://packagist.org/packages/telabotanica/tb-base-rest-service)[ Docs](https://github.com/telabotanica/tb-base-rest-service)[ RSS](/packages/telabotanica-tb-base-rest-service/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (5)Used By (0)

tb-base-rest-service
====================

[](#tb-base-rest-service)

A simple PHP class that helps building REST webservices

install
-------

[](#install)

```
composer install telabotanica/tb-base-rest-service

```

usage
-----

[](#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
-----------------

[](#config-parameters)

### mandatory

[](#mandatory)

- **domain\_root** : root URL of your server
- **base\_uri** : base path of your webservice

### non-mandatory

[](#non-mandatory)

- **first\_resource\_separator** : first character following your base\_uri (typically "/" or ":", defaults to "/")

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~230 days

Total

4

Last Release

2987d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a24ed88969fe2a72aa0db9c2106ca4565f750d7da58e54f7ba9b310c1ae9dbae?d=identicon)[Tela Botanica](/maintainers/Tela%20Botanica)

---

Top Contributors

[![whatever22](https://avatars.githubusercontent.com/u/1510794?v=4)](https://github.com/whatever22 "whatever22 (1 commits)")

---

Tags

restwebservicetelabotanicatela-botanica

### Embed Badge

![Health badge](/badges/telabotanica-tb-base-rest-service/health.svg)

```
[![Health](https://phpackages.com/badges/telabotanica-tb-base-rest-service/health.svg)](https://phpackages.com/packages/telabotanica-tb-base-rest-service)
```

###  Alternatives

[psr/link

Common interfaces for HTTP links

2.5k144.1M68](/packages/psr-link)[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[lexik/jwt-authentication-bundle

This bundle provides JWT authentication for your Symfony REST API

2.6k58.7M210](/packages/lexik-jwt-authentication-bundle)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)[cundd/rest

REST API for TYPO3 CMS

78120.0k1](/packages/cundd-rest)[megaads/apify

A pretty library to help developers build RESTful APIs lightly, quickly and properly even without writing code

151.7k](/packages/megaads-apify)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
