petrelli / live-statics-addons
Addons to extend petrelli/live-statics with new functionalities
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/petrelli/live-statics-addons
Requires
- php: ^7.1
 - laravel/framework: ~5.6.13|~5.7.0
 - petrelli/live-statics: 0.0.2-alpha
 
Requires (Dev)
- mockery/mockery: ^1.0
 - orchestra/testbench: ~3.6.6
 - phpunit/phpunit: ~7.5.6|~8.0.4
 
This package is not auto-updated.
Last update: 2025-10-25 14:07:18 UTC
README
Live-Statics is an open source Laravel package that will help you quickly build prototypes and static pages facilitating data injection into real views. Because all mocked objects will behave as the real ones you won't have to spend any time with integration tasks.
This package provides new Classes, Traits, Faker providers and Modules for you to use.
Install
- Include the package
 
You can run the command:
composer require petrelli/live-statics-addons
Or directly add it to your composer.json
"petrelli/live-statics-addons": "^0.0.1@alpha"
And run composer update.
- Publish configuration files and the Service Provider
 
php artisan vendor:publish --provider="Petrelli\LiveStaticsAddons\BaseServiceProvider"
Usage
Classes
use \Petrelli\LiveStaticsAddons\BaseMock; class BookMock extends BaseMock implements BookInterface { #... }
Traits
Let's include the HasImages to emulate images from Twill as an example.
use \Petrelli\LiveStatics\BaseMock; use \Petrelli\LiveStaticsAddons\Traits\Twill\HasImages; class BookMock extends BaseMock implements BookInterface { use HasImages; #... }
TODO
Documentation:
- Interface Mapper
 - Twill Blocks
 - Twill Images
 
License
The MIT License (MIT). Please see License File for more information.