Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matusstafura/faker-commerce
PHP faker library focused on ecommerce
https://github.com/matusstafura/faker-commerce
faker php
Last synced: 1 day ago
JSON representation
PHP faker library focused on ecommerce
- Host: GitHub
- URL: https://github.com/matusstafura/faker-commerce
- Owner: matusstafura
- License: mit
- Created: 2022-09-30T14:26:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-14T13:02:01.000Z (over 2 years ago)
- Last Synced: 2024-12-30T19:38:24.835Z (16 days ago)
- Topics: faker, php
- Language: PHP
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Faker eCommerce
Generates dummy data related mostly for ecommerce use.
## Install the package
```shell
composer require matusstafura/faker-commerce
```## Usage
```php
use FakerCommerce\Faker\FakerFactory;
// Use a factory to initialize
$faker = FakerFactory::create();$faker->availability();
// "out of stock"$faker->breadcrumbs(4, ">");
// "Radio>Instruments>Materials & Supplies>Accessories"$faker->category();
// "Action Figures"$faker->color();
// "Coral"$faker->condition();
// "Very Good"$faker->name();
// leather shorts$faker->payment();
// "cash on delivery"$faker->price();
// "557.00"$faker->review();
// "Expensive for the quality."$f->getAllMethods();
// lists all available methods```
## Tests
Run the tests with Pest PHP
```shell
composer test
```## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.
## Contribution
Contributions are welcome and will be fully credited. Please, add tests if required.
## Support
You can leave a star.
## Security
If you discover any security-related issues, please email us instead of using the issue tracker.
## TODO
Please see TODO.md file.