PHPackages                             phico/support - 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. phico/support

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

phico/support
=============

Support classes and functions for Phico

055PHP

Since Dec 12Pushed 1y agoCompare

[ Source](https://github.com/phico-php/support)[ Packagist](https://packagist.org/packages/phico/support)[ RSS](/packages/phico-support/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Support
=======

[](#support)

Support classes and functions for [Phico](https://github.com/phico-php/phico)

Reference
=========

[](#reference)

`str()` Returns a new string instance

#### Convert json to string

[](#convert-json-to-string)

```
// optionally pass boolean as_array as the second argument
$json = str()->toJson($object, $as_array=false);
```

#### Decode json from string

[](#decode-json-from-string)

```
// optionally pass any flag constants as the second argument
$object = str()->fromJson($json, $flags = null);
```

#### Sanitise a string

[](#sanitise-a-string)

```
$clean = str()->sanitise($input);
// older alias str()->sanitize($input);
```

#### split a string on capitals

[](#split-a-string-on-capitals)

```
$str = str()->splitOnCaps('ACapitalisedString);
// A Capitalised String
```

#### convert a string to camel case

[](#convert-a-string-to-camel-case)

```
$str = str()->toCamelCase('This is Camel case);
// thisIsCamelCase
```

#### convert a string to kebab case

[](#convert-a-string-to-kebab-case)

```
$str = str()->toKebabCase('This is Kebab case);
// this-is-kebab-case
```

#### convert a string to pascal case

[](#convert-a-string-to-pascal-case)

```
$str = str()->toPascalCase('This is pascal case);
// This Is Pascal Case
```

#### convert a string to train case

[](#convert-a-string-to-train-case)

```
$str = str()->toTrainCase('This is train case);
// This-Is-Train-Case
```

Issues
------

[](#issues)

If you discover any bugs or issues in behaviour or performance please create an issue, and if you are able a pull request with a fix.

Please make sure to update any tests as appropriate.

For major changes, please open an issue first to discuss what you would like to change.

License
-------

[](#license)

[BSD-3-Clause](https://choosealicense.com/licenses/bsd-3-clause/)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/65541311?v=4)[indgy](/maintainers/indgy)[@indgy](https://github.com/indgy)

---

Top Contributors

[![indgy](https://avatars.githubusercontent.com/u/65541311?v=4)](https://github.com/indgy "indgy (27 commits)")

### Embed Badge

![Health badge](/badges/phico-support/health.svg)

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

###  Alternatives

[leo108/laravel_cas_server

A laravel package provides CAS server implementation

894.7k](/packages/leo108-laravel-cas-server)

PHPackages © 2026

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