cable8mm / order-sheet
This package is able to generate a kind of seed for order sheets and order invoices so you can use it for testing like that
Requires
- php: ^8.1
- cable8mm/enum-getter: ^1.4
- fakerphp/faker: ^1.0
- league/csv: ^9.0
- mbezhanov/faker-provider-collection: ^2.0
- phpoffice/phpspreadsheet: ^1.29.0|^2.0|^3.0
Requires (Dev)
- laravel/pint: ^1.20
- phpunit/phpunit: ^9.0|^10.0|^11.0
Suggests
- ext-mbstring: `league/csv` needed to be installed
- cable8mm/enum-getter: Provide a easy way to access enum values
- mbezhanov/faker-provider-collection: Provide faker methods for companies and products
- phpoffice/phpspreadsheet: Provides xlsx support for exporting data
This package is auto-updated.
Last update: 2025-02-08 09:25:13 UTC
README
This package is able to generate a kind of seeds for order sheets and order invoices so you can use this package for testing as you want to.
We have provided the API Documentation on the web. For more information, please visit https://www.palgle.com/order-sheet/ ❤️
Supported Companies
- PLAYAUTO - https://www.plto.com/
Installation
You can install the package via composer:
composer require cable8mm/order-sheet
Usage
OrderSheet::of(OrderSheetType::PlayautoType) ->count(10) // 10 of factories ->header() // include the header row ->path('dist') // the saving path ->xlsx('my.xlsx'); // export to xlsx file(default: 'order_sheet.xlsx') // => Save 10 factories with header in 'dist' folder $orderSheets = OrderSheet::of(OrderSheetType::PlayautoType) ->count(10) // 10 of factories ->csv(); // export to csv // => Get 10 factories without header row $orderSheets = OrderSheet::of(OrderSheetType::PlayautoType) ->count(10) // 10 of factories ->toArray(); // export to array // => Get 10 factories array without header row
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email cable8mm@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.