PHPackages                             webforge/common - 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. [Framework](/categories/framework)
4. /
5. webforge/common

ActiveLibrary[Framework](/categories/framework)

webforge/common
===============

Boilerplate for Webforge and Psc - CMS

1.9.0(8y ago)03.1k[5 issues](https://github.com/webforge-labs/webforge-common/issues)6MITPHPPHP &gt;=5.3.2

Since Feb 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/webforge-labs/webforge-common)[ Packagist](https://packagist.org/packages/webforge/common)[ Docs](http://github.com/pscheit/webforge-common)[ RSS](/packages/webforge-common/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (27)Used By (6)

webforge-common
===============

[](#webforge-common)

[![Build Status](https://camo.githubusercontent.com/476ce5030ad4b060f931b97ef3b90d801708b9537acedbcf645638859bb1dc97/68747470733a2f2f7472617669732d63692e6f72672f776562666f7267652d6c6162732f776562666f7267652d636f6d6d6f6e2e706e67)](https://travis-ci.org/webforge-labs/webforge-common) [![Coverage Status](https://camo.githubusercontent.com/bdd4d53098553e236ab43bc33815466a90cbcf864ae229fa3b86afb6f8639bff/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f776562666f7267652d6c6162732f776562666f7267652d636f6d6d6f6e2f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/webforge-labs/webforge-common?branch=master) [![Latest Stable Version](https://camo.githubusercontent.com/99b1bef3af1ba6d59d5ea9f35618a984a756ec0ac4fd26e26a3d8de1f1b36218/68747470733a2f2f706f7365722e707567782e6f72672f776562666f7267652f636f6d6d6f6e2f76657273696f6e2e706e67)](https://packagist.org/packages/webforge/common)

This small library covers all common code for the webforge framework, to have a small set from classes that are sufficient to start off a litte project. You can use it indepently from every webforge installation - allthough you will lose some features.

whats included
--------------

[](#whats-included)

- DateTime and Time classes for an advanced (and more concise) interface for the PHP::DateTime classes
- A full functional File and Directory implementation that abstracts a lot of PHP file funtions
    - supports nearly every way to write a file path (and convert):
        - windows D:\\www\\something.php
        - unix /some/path
        - wrappers: vfs://some/file/topath
        - windows cygin /cydrive/d/www/someting.php
        - windows shares \\\\psc-laptop\\shared\\www\\something.php
        - unix style windows paths (sublime and others): /D/www/something.php
    - copy dirs and files recursively
    - find files recursively
- Commonly used Exceptions with better semantics and debug output (FileNotFound, NotImplemented, Deprecated)
- Some simple Utils to debug and dump variables
- A bunch of useful String and Array functions
- System: use the CLI with better abstractions for you tests and build better, stable CLI applications
- Convert read and lint JSON
- Common used value Objects (Url, Command, Macro)

usage
-----

[](#usage)

- [Dir and File API](docs/dir-and-file.md)
- [JSON](docs/json.md)

installation
------------

[](#installation)

Use [Composer](http://getcomposer.org) to install.

```
composer require webforge/common:@stable

```

testing
-------

[](#testing)

to run the tests use:

```
phpunit

```

license
-------

[](#license)

Copyright (c) 2013 ps-webforge.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity68

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

Recently: every ~322 days

Total

25

Last Release

3107d ago

### Community

Maintainers

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

---

Top Contributors

[![pscheit](https://avatars.githubusercontent.com/u/488189?v=4)](https://github.com/pscheit "pscheit (169 commits)")

---

Tags

framework

### Embed Badge

![Health badge](/badges/webforge-common/health.svg)

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

###  Alternatives

[hemp/presenter

Easy Model Presenters in Laravel

247592.6k1](/packages/hemp-presenter)[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)[wpstarter/framework

The WpStarter Framework - Laravel Framework for WordPress

1810.1k4](/packages/wpstarter-framework)

PHPackages © 2026

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