PHPackages                             williamespindola/field - 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. [CLI &amp; Console](/categories/cli)
4. /
5. williamespindola/field

ActiveLibrary[CLI &amp; Console](/categories/cli)

williamespindola/field
======================

Field provider

v0.4.0(10y ago)33222[7 issues](https://github.com/williamespindola/field/issues)BDS-3-ClausePHPPHP &gt;=5.4

Since Jul 14Pushed 10y ago2 watchersCompare

[ Source](https://github.com/williamespindola/field)[ Packagist](https://packagist.org/packages/williamespindola/field)[ Docs](https://github.com/williamespindola/field)[ RSS](/packages/williamespindola-field/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (5)Versions (9)Used By (0)

Field
=====

[](#field)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3dd505a3fc2e22d6ffd74cf0dcf0516862d8694e4a0f9fb581f6239846e50f3d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f77696c6c69616d657370696e646f6c612f6669656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/williamespindola/field)[![Software License](https://camo.githubusercontent.com/b60331a2084501dc07cf6d6964c0da58dd005d89c45cf3b28b4b22b60f5ec00f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4253442d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/4012e26bbd1c591565327c2b1df94b95bc1eb4d4368c065022ea12a76c22eb62/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f77696c6c69616d657370696e646f6c612f6669656c642f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/williamespindola/field)[![Coverage Status](https://camo.githubusercontent.com/6deb4c48260c7b4c0fa9f3b1d3595272ec0f10096ced0d88aee7e3d12990683d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f77696c6c69616d657370696e646f6c612f6669656c642e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/williamespindola/field/code-structure)[![Quality Score](https://camo.githubusercontent.com/f53731a0381615acd2bc78877e4ed9b29baa35ec56a1d5ed83eb86d03e132292/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f77696c6c69616d657370696e646f6c612f6669656c642e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/williamespindola/field)[![Total Downloads](https://camo.githubusercontent.com/0f9269358678953a4ca87777630ee764e7a4334f3c12f7c08b59d5918542f35e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f77696c6c69616d657370696e646f6c612f6669656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/williamespindola/field)

Field is a blueprint to work as a CMS inspired on [cockpit](http://getcockpit.com/). Via command line you can create fields for your partials and consume in your project using Repository, Services or Extensions.

Features
--------

[](#features)

- Mult language database schema
- Collection of fields
- Options of fields
- CLI interface
- Services, Repositories and Storage
- [Doctrine](https://github.com/doctrine/doctrine2) and [Relational](https://github.com/Respect/Relational) suport (cli only work with relational see issue #27)

### Example

[](#example)

You can create Languages, Collections, Fields and Options. Here some examples:

```
php vendor/bin/field create Language en_EN English

php vendor/bin/field create Collection header Header en_EN

php vendor/bin/field create Field about "About text" en_EN html
php vendor/bin/field create Field meta-keys Metakeys en_EN text header
php vendor/bin/field create Field contact Contact en_EN text

php vendor/bin/field create Option Girl contact en_EN
php vendor/bin/field create Option Boy contact en_EN
```

Now you can use some repository or services to consume, or implement the storage as you need and white you own repository and services. Example!

```
use WilliamEspindola\Field\Storage\ORM\Doctrine;
use WilliamEspindola\Field\Repository\FieldRepository;

$doctrineStorage    = new Doctrine(/** doctrine setup */); // you can uss orther ORM as you want
$repository         = new FieldRepository($doctrineStorage);

$repository->findAll()
```

[Checkout the docs on wiki!](https://github.com/williamespindola/field/wiki)

Install
-------

[](#install)

Via Composer

```
$ composer require williamespindola/field
```

Usage
-----

[](#usage)

```
php vendor/bin/field
```

See all documentation on [Wiki](https://github.com/williamespindola/field/wiki)

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [William Espindola](https://github.com/williamespindola)
- [All Contributors](../../contributors)

License
-------

[](#license)

The BSD License (BSD). Please see [License File](LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

Recently: every ~1 days

Total

8

Last Release

3890d ago

### Community

Maintainers

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

---

Top Contributors

[![williamespindola](https://avatars.githubusercontent.com/u/794521?v=4)](https://github.com/williamespindola "williamespindola (34 commits)")

---

Tags

consolephpconsolecmsfield

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/williamespindola-field/health.svg)

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

###  Alternatives

[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)[contributte/console-extra

Nette-based console commands for latte, DIC, security, utils and many others

301.2M2](/packages/contributte-console-extra)

PHPackages © 2026

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