PHPackages                             g4t/mock-interface - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. g4t/mock-interface

ActiveLibrary[Testing &amp; Quality](/categories/testing)

g4t/mock-interface
==================

0.0.1(2y ago)09MITPHP

Since Oct 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/hussein4alaa/g4t-mock-interface-laravel)[ Packagist](https://packagist.org/packages/g4t/mock-interface)[ RSS](/packages/g4t-mock-interface/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

G4T Mock Interface Laravel
==========================

[](#g4t-mock-interface-laravel)

[![Packagist Version](https://camo.githubusercontent.com/63e693a49b16c710fc98652ff038a1ccb165255d98807aac25db37ab4f493a41/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6875737365696e34616c61612f6734742d6d6f636b2d696e746572666163652d6c61726176656c)](https://camo.githubusercontent.com/63e693a49b16c710fc98652ff038a1ccb165255d98807aac25db37ab4f493a41/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6875737365696e34616c61612f6734742d6d6f636b2d696e746572666163652d6c61726176656c)[![GitHub](https://camo.githubusercontent.com/3a180aea603ad0f9d411ea19efd189d1dc7c14a69ca8e4bf410584406f3eff86/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6875737365696e34616c61612f6734742d6d6f636b2d696e746572666163652d6c61726176656c)](https://camo.githubusercontent.com/3a180aea603ad0f9d411ea19efd189d1dc7c14a69ca8e4bf410584406f3eff86/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6875737365696e34616c61612f6734742d6d6f636b2d696e746572666163652d6c61726176656c)

The G4T Mock Interface Laravel Package is a versatile and essential tool for managing mock interfaces within your Laravel applications. This package streamlines the process of creating and managing mock interfaces, making it invaluable for developers engaged in API testing and development.

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

[](#installation)

You can easily integrate this package into your Laravel project using Composer. To do so, execute the following command:

```
composer require g4t/mock-interface
```

Usage
-----

[](#usage)

The G4T Mock Interface Laravel Package offers a wide array of features to facilitate the management of mock interfaces in your Laravel application. Here's how you can get started:

Create a new interface:

```
php artisan interface:create UserInterface
```

To create an interface with a schema file and CRUD functions:

```
php artisan interface:create UserInterface --all
```

Create a schema with a schema file and CRUD functions:

```
php artisan schema:create UserInterface
```

You can also use the --model and --interface options with the above commands.

Here's an example of an interface and how it can be utilized:

```
