PHPackages                             hxgf/slime-utilities - 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. hxgf/slime-utilities

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

hxgf/slime-utilities
====================

Enhancement utilities for developing with Slim framework

1.2.0(3y ago)025[1 issues](https://github.com/jyoungblood/slime-utilities/issues)MITPHP

Since Apr 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jyoungblood/slime-utilities)[ Packagist](https://packagist.org/packages/hxgf/slime-utilities)[ Docs](https://github.com/hxgf/slime-utilities)[ RSS](/packages/hxgf-slime-utilities/feed)WikiDiscussions master Synced yesterday

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

SLIME Utilities
===============

[](#slime-utilities)

Abstraction functions to promote a fast and easy development workflow with Slim.
--------------------------------------------------------------------------------

[](#abstraction-functions-to-promote-a-fast-and-easy-development-workflow-with-slim)

Most of these functions aren't specific to Slim and can be used in other contexts or on their own (except for the 'render' functions). We've bundled them together for convenience to be included with the [Slime boilerplate and metaframework](https://github.com/jyoungblood/slime).

These functions are also available as separate packages:

- [slime-render](https://github.com/jyoungblood/slime-render)
- [dbkit](https://github.com/jyoungblood/dbkit)
- [http-request](https://github.com/jyoungblood/http-request)
- [cookie](https://github.com/jyoungblood/cookie)
- [x-utilities](https://github.com/jyoungblood/x-utilities)

Installation
------------

[](#installation)

```
composer require jyoungblood/slime-utilities

```

```
use Slime\render;
use Slime\db;
use Slime\http;
use Slime\cookie;
use Slime\x;

require __DIR__ . '/vendor/autoload.php';
```

API
---

[](#api)

Refer to the source packages for usage examples.

### [render - Render Content as PSR-7](https://github.com/jyoungblood/slime-render)

[](#render---render-content-as-psr-7)

- render::hbs($request, $response, $parameters)
- render::redirect($request, $response, $parameters)
- render::json($request, $response, $parameters)
- render::lightncandy\_html($parameters)($data)
- render::initialize\_handlebars\_helpers()
- render::twig($request, $response, $parameters)

### [db - Data Handlers (mysql w/ PDO)](https://github.com/jyoungblood/dbkit)

[](#db---data-handlers-mysql-w-pdo)

- db::init($settings)
- db::insert($table, $input)
- db::find($table, $criteria, $options)
- db::update($table, $input, $criteria)
- db::delete($table, $criteria)
- db::create\_placeholders($criteria)

### [http - HTTP Request Handlers](https://github.com/jyoungblood/http-request)

[](#http---http-request-handlers)

- http::request($url, $parameters)
- http::get($url, $parameters)
- http::post($url, $parameters)
- http::json($url, $parameters)

### [cookie - Cookie Handlers](https://github.com/jyoungblood/cookie)

[](#cookie---cookie-handlers)

- cookie::set($key, $value, $parameters)
- cookie::get($key)
- cookie::delete($key)

### [x - Misc Utilities](https://github.com/jyoungblood/x-utilities)

[](#x---misc-utilities)

- x::email\_send($parameters)
- x::client\_ip()
- x::url\_slug($string)
- x::url\_strip($url)
- x::url\_validate($url)
- x::br2nl($string)
- x::array\_encode($array)
- x::array\_decode($string)
- x::console\_log($input, $parameters)
- x::dd($input, $parameters)
- x::file\_write($input, $target\_filename, $parameters)
- x::error\_log($input, $parameters)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Total

5

Last Release

1209d ago

Major Versions

0.2.0 → 1.0.02022-05-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/f4130bfc70d308f890899a0c223f9888271f0fd3f91879b09558ba696862d8d4?d=identicon)[jyoungblood](/maintainers/jyoungblood)

---

Top Contributors

[![jyoungblood](https://avatars.githubusercontent.com/u/56104?v=4)](https://github.com/jyoungblood "jyoungblood (18 commits)")

---

Tags

abstractioncollectionutilitiesmetaframework

### Embed Badge

![Health badge](/badges/hxgf-slime-utilities/health.svg)

```
[![Health](https://phpackages.com/badges/hxgf-slime-utilities/health.svg)](https://phpackages.com/packages/hxgf-slime-utilities)
```

###  Alternatives

[willdurand/geocoder

Common files for PHP Geocoder

17435.7M159](/packages/willdurand-geocoder)[lorisleiva/lody

Load files and classes as lazy collections in Laravel.

956.6M9](/packages/lorisleiva-lody)[ebidtech/collection

A set of interfaces and traits to speed up the creation of collections

13119.8k6](/packages/ebidtech-collection)

PHPackages © 2026

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