PHPackages                             emsifa/stuble - 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. emsifa/stuble

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

emsifa/stuble
=============

Command line application to simplify working with stubs

v0.4.0(4y ago)537[11 issues](https://github.com/emsifa/stuble/issues)MITPHPPHP &gt;=8.0.3

Since Aug 22Pushed 4y ago2 watchersCompare

[ Source](https://github.com/emsifa/stuble)[ Packagist](https://packagist.org/packages/emsifa/stuble)[ RSS](/packages/emsifa-stuble/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependencies (5)Versions (7)Used By (0)

STUBLE
======

[](#stuble)

Stuble is command line tool built with PHP to simplify working with stubs. Stuble will collect parameters in your stub(s) file(s) and ask you those parameters. So you don't need to write scripts to handle each stub file.

[![Stuble](https://raw.githubusercontent.com/emsifa/stuble/edb6fe4fb0c6c7d9f938bdee721ab83ca69f2644/stuble.png)](https://raw.githubusercontent.com/emsifa/stuble/edb6fe4fb0c6c7d9f938bdee721ab83ca69f2644/stuble.png)

REQUIREMENTS
------------

[](#requirements)

- PHP &gt;= 8.0.3
- Composer

INSTALLATION
------------

[](#installation)

```
composer global require emsifa/stuble

```

> Make sure you have register composer bin directory to your PATH variable. You can [read this](https://getcomposer.org/doc/03-cli.md#global) for more information.

USAGE EXAMPLE
-------------

[](#usage-example)

Before we get started, you need to know that stuble scan stubs files from 2 locations.

1. Local source: `stubs` directory wherever you want to use `stuble` command.
2. Global source: `stubs` directory inside `STUBLE_HOME` path.

If same stub file found in 2 sources, stuble will use local stub file.

#### Make Stub File

[](#make-stub-file)

In your cmd/terminal, go to directory wherever you want to try stuble.

For example we are in `/home/me/coding/try-stuble`.

Then create file `stubs/model.stub` in that directory:

```
