PHPackages                             smn/phsystem - 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. smn/phsystem

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

smn/phsystem
============

Placeholder System for PHP

1.0.0(5y ago)023MITPHPPHP ^7.4

Since Sep 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/smnDev/phs)[ Packagist](https://packagist.org/packages/smn/phsystem)[ Docs](https://github.com/smnDev/phs)[ RSS](/packages/smn-phsystem/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

PlaceHolderSystem
=================

[](#placeholdersystem)

A simple class for replace value in a string pattern

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

[](#requirements)

- PHP &gt;= 7.4
- Composer

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

[](#installation)

```
composer require smn/phsystem
```

Usage
-----

[](#usage)

This simple class use a pattern and a list of placeholders

Pattern is the string or phrase with placeholder. Placeholder are wrapped in "{ }"

List of placeholders is a list containing pair key/value , where value is a simple string or a callback

#### Simple value

[](#simple-value)

```
