PHPackages                             infrajs/rest - 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. [API Development](/categories/api)
4. /
5. infrajs/rest

ActiveLibrary[API Development](/categories/api)

infrajs/rest
============

v1.0.12(5y ago)02.2k13PHP

Since Jul 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/infrajs/rest)[ Packagist](https://packagist.org/packages/infrajs/rest)[ Docs](https://github.com/infrajs/rest)[ RSS](/packages/infrajs-rest/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (6)Versions (14)Used By (13)

Набор js и php методов для работы с адресной срокой в REST стиле.
=================================================================

[](#набор-js-и-php-методов-для-работы-с-адресной-срокой-в-rest-стиле)

Функция `Rest::get` не имеет встроенного кэша. Срабатывает только один обработчик и возвращается результат его работы.

```
use infrajs\rest\Rest;
// pos/Kemppi/Minarc
$ans = Rest::get(function() {
	// Срабатывает когда ничего другова не сработало
	$ans = array('msg' => 'ок');
	return $ans;
}, 'pos', function(){
	// Срабатывает для крошки pos
}, 'test', [function(){
		// Срабатывает для крошки test
	}, 'one', function(){
		// Срабатывает для адреса test/one
}], function($param1 = false, $param2 = false){
	// Срабатывает для любой крошки
});
return Ans::ret($ans);
```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity70

Established project with proven stability

 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 ~108 days

Recently: every ~49 days

Total

13

Last Release

1951d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/341a8ef8a06866ad99b1bbcf0216fd8e331b076b1690a7d992c386192674b787?d=identicon)[akiyatkin](/maintainers/akiyatkin)

---

Top Contributors

[![akiyatkin](https://avatars.githubusercontent.com/u/953753?v=4)](https://github.com/akiyatkin "akiyatkin (19 commits)")

### Embed Badge

![Health badge](/badges/infrajs-rest/health.svg)

```
[![Health](https://phpackages.com/badges/infrajs-rest/health.svg)](https://phpackages.com/packages/infrajs-rest)
```

###  Alternatives

[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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