PHPackages                             dakin/stubborn - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. dakin/stubborn

ActiveLibrary[File &amp; Storage](/categories/file-storage)

dakin/stubborn
==============

Generate stub files easily

1.1(1y ago)038MITPHPPHP ^8.0

Since Apr 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/tylerdak/stubborn)[ Packagist](https://packagist.org/packages/dakin/stubborn)[ Docs](https://github.com/tylerdak/stubborn)[ RSS](/packages/dakin-stubborn/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (6)Used By (0)

Stubborn for PHP
----------------

[](#stubborn-for-php)

- [Introduction](#introduction)
- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
    - [Create a stub file](#create-a-stub-file)
    - [How to use Stubborn](#how-using-stubborn)
    - [`from`](#from)
    - [`to`](#to)
    - [`name`](#name)
    - [`ext`](#ext)
    - [`replace`](#replace)
    - [`replaces`](#replaces)
    - [`download`](#download)
    - [`generate`](#generate)
    - [Modifiers](#modifiers)
    - [Setting a Stub Folder](#stub_folder)
    - [Setting a Context Folder](#context_folder)
    - [Implicit Target Dir and Extensions](#implicit_to_ext)
- [Contributors](#contributors)
- [Security](#security)
- [Changelog](#changelog)
- [License](#license)

Introduction
------------

[](#introduction)

The Stubborn package enhances the PHP development workflow by providing a set of customizable stubs. Stubs are templates used to scaffold code snippets for various components like models, controllers, and migrations. With Stubborn, developers can easily tailor these stubs to match their project's coding standards and conventions. This package aims to streamline the code generation process, fostering consistency and efficiency in PHP projects. Explore the customization options and boost your development speed with Stubborn.

Generating new files from stubs can be as simple as this:

```
