PHPackages                             cwccode/laravel-contracts - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. cwccode/laravel-contracts

AbandonedLibrary[PSR &amp; Standards](/categories/psr-standards)

cwccode/laravel-contracts
=========================

A Laravel artisan command to make interfaces

v1.0.2(7y ago)04.4kMITPHP

Since Jul 31Pushed 4y agoCompare

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

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

⚠️ **This package has been abandonned.**

I can't promise it will get baked into [Laravel](https://github.com/laravel/framework), but it has popped up on [Taylor Otwell's radar](https://twitter.com/taylorotwell/status/1440364082037592068), so it could happen 🤞

Laravel Contract Command
========================

[](#laravel-contract-command)

`cwccode/laravel-contracts` is a package that adds a `make:contract` command to Laravel, to create interfaces for your application.

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

[](#installation)

You can install the package using composer:

```
composer require --dev cwccode/laravel-contracts
```

For Laravel 5.4 or less, you'll need to register the service provider manually in /config/app.php

Usage
-----

[](#usage)

To make a new interface, simply run:

```
php artisan make:contract InterfaceName
```

This will produce the following file in `app/Contracts/InterfaceName.php`:

```
