PHPackages                             junker/silex-jsend - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. junker/silex-jsend

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

junker/silex-jsend
==================

Silex JSend Component

0.2.0(10y ago)146MIT

Since Jun 3Compare

[ Source](https://github.com/Junker/SilexJsend)[ Packagist](https://packagist.org/packages/junker/silex-jsend)[ RSS](/packages/junker-silex-jsend/feed)WikiDiscussions Synced today

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

SilexJsend
==========

[](#silexjsend)

JSend Component for Silex

Requirements
------------

[](#requirements)

silex 1.x, 2.x

\##Installation The best way to install SilexJsend is to use a [Composer](https://getcomposer.org/download):

```
php composer.phar require junker/silex-jsend

```

Examples
--------

[](#examples)

```
class Application extends \Silex\Application
{
	use \Junker\Silex\Application\JSendTrait;
}
```

```
use \Junker\Symfony\JSendResponse;

$app->get('/', function() use ($app) {

	$data = ['id' => 50, 'name' => 'Waldemar'];
	$message = 'Error, total error!';
	$code = 5;

	return $app->jsend(JSendResponse::STATUS_SUCCESS, $data);
	#or
	return $app->jsend(JSendResponse::STATUS_FAIL, $data);
	#or
	return $app->jsend(JSendResponse::STATUS_ERROR, NULL, $message);
	#or
	return $app->jsend(JSendResponse::STATUS_ERROR, $data, $message, $code);
	#or
	return $app->jsendSuccess($data);
	#or
	return $app->jsendFail($data);
	#or
	return $app->jsendError($message);
	#or
	return $app->jsendError($message, $code, $data);
});
```

\##Documentation

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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

Total

4

Last Release

3677d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1144095?v=4)[Dmitry Kosenkov](/maintainers/Junker)[@Junker](https://github.com/Junker)

---

Tags

responsesilexjsend

### Embed Badge

![Health badge](/badges/junker-silex-jsend/health.svg)

```
[![Health](https://phpackages.com/badges/junker-silex-jsend/health.svg)](https://phpackages.com/packages/junker-silex-jsend)
```

###  Alternatives

[igorw/config-service-provider

A config ServiceProvider for Silex with support for php, json and yaml.

215638.9k13](/packages/igorw-config-service-provider)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40140.4k2](/packages/erlandmuchasaj-laravel-gzip)[jbinfo/mobile-detect-service-provider

A mobile detect ServiceProvider for Silex, based on Mobile-Detect library.

25332.9k](/packages/jbinfo-mobile-detect-service-provider)

PHPackages © 2026

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