Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ferpetrelli/live-statics-addons
Addons to be used with Live Statics package.
https://github.com/ferpetrelli/live-statics-addons
Last synced: about 2 months ago
JSON representation
Addons to be used with Live Statics package.
- Host: GitHub
- URL: https://github.com/ferpetrelli/live-statics-addons
- Owner: ferpetrelli
- License: mit
- Created: 2019-02-19T23:16:19.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-21T22:14:42.000Z (almost 6 years ago)
- Last Synced: 2024-04-17T14:22:15.913Z (9 months ago)
- Language: PHP
- Homepage: https://github.com/ferpetrelli/live-statics
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# About Live-Statics Addons
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
1. Include the package
You can run the command:
```bash
composer require petrelli/live-statics-addons
```Or directly add it to your composer.json
```json
"petrelli/live-statics-addons": "^0.0.1@alpha"
```And run `composer update`.
2. Publish configuration files and the Service Provider
```
php artisan vendor:publish --provider="Petrelli\LiveStaticsAddons\BaseServiceProvider"
```# Usage
## Classes
```php
use \Petrelli\LiveStaticsAddons\BaseMock;class BookMock extends BaseMock implements BookInterface
{
#...
}
```## Traits
Let's include the `HasImages` to emulate images from `Twill` as an example.
```php
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](LICENSE.md) for more information.