Download the PHP package steadfastcollective/fabric without Composer

On this page you can find all versions of the php package steadfastcollective/fabric. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package 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.

📺   Watch introduction video

📰   Read the blog post

Installation

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

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

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 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

Parameters

Name Description
--tests Scaffolds out a basic testing setup, with PHPUnit.

Laravel

Parameters

Name Description
--tests Scaffolds out a basic testing setup, with PHPUnit.
--facade Creates a Facade for your package.
--config Creates a configuration file and hooks it up in your service provider.
--views Creates an empty views directory and hooks it up in your service provider.
--lang Creates an empty lang directory and hooks it up in your service provider.
--routes Creates an empty routes file and hooks it up in your service provider.
--migrations Creates an empty migrations directory and hooks it up in your service provider.

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.

Parameters

Name Description
--tests Scaffolds out a basic testing setup, with PHPUnit.
--config Creates a configuration file and hooks it up in your service provider.
--views Creates an empty views directory and hooks it up in your service provider.
--lang Creates an empty lang directory and hooks it up in your service provider.
--routes Creates an empty routes file and hooks it up in your service provider.
--modifier Creates a modifier class and hooks it up in your service provider.
--action Creates an action class and hooks it up in your service provider.

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 [email protected]: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.


All versions of fabric with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3 || ^8.0
friendsofphp/php-cs-fixer Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package steadfastcollective/fabric contains the following files

Loading the files please wait ....