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

v1.2.1 2025-02-08 09:24 UTC

This package is auto-updated.

Last update: 2025-02-08 09:25:13 UTC


README

code-style run-tests pages-build-deployment Packagist Version Packagist Dependency Version Packagist Downloads Packagist Stars Packagist License

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

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.