PHPackages                             steadfastcollective/fabric - 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. steadfastcollective/fabric

AbandonedArchivedLibrary

steadfastcollective/fabric
==========================

CLI Tool to easily bootstrap PHP &amp; Laravel packages.

v2.0.6(5y ago)20431PHPPHP ^7.3

Since Sep 25Pushed 4y agoCompare

[ Source](https://github.com/steadfast-collective/fabric)[ Packagist](https://packagist.org/packages/steadfastcollective/fabric)[ RSS](/packages/steadfastcollective-fabric/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (9)Dependencies (4)Versions (11)Used By (0)

Fabric
======

[](#fabric)

Fabric is a command-line utility to quickly scaffold PHP and Laravel packages. This tool is still in early stages, any bugs can be reported as [Github Issues](https://github.com/steadfast-collective/fabric/issues).

[**📺 Watch introduction video**](https://www.youtube.com/watch?v=hHEuWvt2EO0)

[**📰 Read the blog post**](https://steadfastcollective.com/engineering/introduction-to-fabric)

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

[](#installation)

It's recommended to install Fabric globally on your machine so you can run `fabric` commands where-ever you are in your terminal.

```
composer global require steadfastcollective/fabric

```

You'll also want to ensure that `~/.composer/vendor/bin` is in your terminal's path.

Usage
-----

[](#usage)

Fabric provides seperate commands for each type of package that can be bootstrapped. One for `php`, one for `laravel` and one for `statamic`. You can specify when you run the command, like so: `fabric php`

When running a Fabric command, you'll also need to tell it the [name of the Composer package](https://getcomposer.org/doc/04-schema.md#name) you want to bootstrap. For example: `fabric php steadfastcollective/package-name`, where `steadfastcollective` is the Packagist vendor and `package-name` is the name of your package.

You can optionally provide a set of parameters which will be used to tell Fabric about any specific things you'd like to be bootstrapped, like Tests or a Facade. The list of parameters is documented for each package type. If you don't provide any parameters, you'll be presented with a yes/no wizard instead.

### PHP

[](#php)

```
cd ~/Code
fabric php steadfastcollective/vesta-php --tests

```

**Parameters**

NameDescription--testsScaffolds out a basic testing setup, with PHPUnit.### Laravel

[](#laravel)

```
cd ~/Code
fabric laravel steadfastcollective/cashier-extended --tests --facade --config

```

**Parameters**

NameDescription--testsScaffolds out a basic testing setup, with PHPUnit.--facadeCreates a Facade for your package.--configCreates a configuration file and hooks it up in your service provider.--viewsCreates an empty views directory and hooks it up in your service provider.--langCreates an empty lang directory and hooks it up in your service provider.--routesCreates an empty routes file and hooks it up in your service provider.--migrationsCreates an empty migrations directory and hooks it up in your service provider.### Statamic

[](#statamic)

> Fabric doesn't currently provide the ability to provide everything you might need (fieldtypes, filters, widgets, etc). In those cases, it may be a good idea to create the addon with Fabric and then create the types using Statamic's `please` command line tool.

```
cd ~/Code
fabric statamic steadfastcollective/twitter-sharing-tool --tests --config --action

```

**Parameters**

NameDescription--testsScaffolds out a basic testing setup, with PHPUnit.--configCreates a configuration file and hooks it up in your service provider.--viewsCreates an empty views directory and hooks it up in your service provider.--langCreates an empty lang directory and hooks it up in your service provider.--routesCreates an empty routes file and hooks it up in your service provider.--modifierCreates a modifier class and hooks it up in your service provider.--actionCreates an action class and hooks it up in your service provider.Development
-----------

[](#development)

If you're wanting to work on Fabric (the tool) locally, there's a few steps to getting it setup:

1. Clone this repository: `git clone git@github.com:steadfast-collective/fabric.git`
2. Change directory into `fabric`
3. Install Composer dependencies `composer install`

After the above steps, you'll be able to run Fabric commands with `php fabric`. This will also allow you to run two versions of Fabric, the production one which is globally installed with Composer and the development version, cloned to your machine.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Recently: every ~65 days

Total

10

Last Release

1786d ago

Major Versions

v1.0.5 → v2.0.62020-10-30

PHP version history (2 changes)v1.0.0PHP ^7.3

v1.0.7PHP ^7.3 || ^8.0

### Community

Maintainers

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

---

Top Contributors

[![duncanmcclean](https://avatars.githubusercontent.com/u/19637309?v=4)](https://github.com/duncanmcclean "duncanmcclean (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/steadfastcollective-fabric/health.svg)

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

PHPackages © 2026

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