PHPackages                             cable8mm/order-sheet - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. cable8mm/order-sheet

ActiveLibrary[Testing &amp; Quality](/categories/testing)

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.2(1mo ago)0329MITPHPPHP ^8.2CI passing

Since Feb 7Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/cable8mm/order-sheet)[ Packagist](https://packagist.org/packages/cable8mm/order-sheet)[ Docs](https://github.com/cable8mm/order-sheet)[ RSS](/packages/cable8mm-order-sheet/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (6)Dependencies (14)Versions (7)Used By (0)

주문서 및 인보이스 생성기
==============

[](#주문서-및-인보이스-생성기)

[![code-style](https://github.com/cable8mm/order-sheet/actions/workflows/code-style.yml/badge.svg)](https://github.com/cable8mm/order-sheet/actions/workflows/code-style.yml)[![run-tests](https://github.com/cable8mm/order-sheet/actions/workflows/run-tests.yml/badge.svg)](https://github.com/cable8mm/order-sheet/actions/workflows/run-tests.yml)[![pages-build-deployment](https://github.com/cable8mm/order-sheet/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/cable8mm/order-sheet/actions/workflows/pages/pages-build-deployment)[![Packagist Version](https://camo.githubusercontent.com/6db7cd2a70266b507ce8de76ef180012642777e842e3db046b820c0a0873ca45/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6361626c65386d6d2f6f726465722d7368656574)](https://packagist.org/packages/cable8mm/order-sheet)[![Packagist Dependency Version](https://camo.githubusercontent.com/242bd38263929de468390026cabdd0e6e3f0c24006ec0c23e7eeffd4d1d74195/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6361626c65386d6d2f6f726465722d73686565742f7068703f6c6f676f3d504850266c6f676f436f6c6f723d776869746526636f6c6f723d373737424234)](https://packagist.org/packages/cable8mm/order-sheet)[![Packagist Downloads](https://camo.githubusercontent.com/bbb77f73ad8517d9fe155e38ce71b9e9b86e08134b0fd312f073ad32336f9019/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6361626c65386d6d2f6f726465722d7368656574)](https://packagist.org/packages/cable8mm/order-sheet/stats)[![Packagist Stars](https://camo.githubusercontent.com/42a975d096129746648a8a3f9f290d8e27b0d701c61d9f329abcefbc3737f525/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6361626c65386d6d2f6f726465722d7368656574)](https://github.com/cable8mm/order-sheet/stargazers)[![Packagist License](https://camo.githubusercontent.com/e0ae994c78ebb4cbd707325a2f72a2b60b2f02df9c2db637c9160f803a5db0b3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6361626c65386d6d2f6f726465722d7368656574)](https://github.com/cable8mm/order-sheet/blob/main/LICENSE.md)

주문서와 인보이스 생성을 위한 테스트 데이터(시드)를 자동으로 생성하는 PHP 패키지입니다.

API 문서:

지원 쇼핑몰
------

[](#지원-쇼핑몰)

- PLAYAUTO -

지원 온라인 몰
--------

[](#지원-온라인-몰)

PLAYAUTO 주문서에서 사용 가능한 온라인 몰:

- 티몬 (Timon)
- 고도몰5 (GodoMall5)
- 카페24(신) (NewCafe24)
- 위메프2.0 (Wemake2)
- 롯데백화점 (LotteDepartment)
- 옥션 (Auction)

확장 방법
-----

[](#확장-방법)

이 패키지는 새로운 쇼핑몰을 쉽게 추가할 수 있도록 설계되어 있습니다.

### 새 쇼핑몰 추가하기

[](#새-쇼핑몰-추가하기)

1. `src/Factories/` 디렉토리에 새 Factory 클래스 생성 (예: `NewCompanyFactory.php`)
2. `definition()` 메서드를 구현하여 컬럼명과 faker 값을 반환하는 배열 작성
3. `src/Enums/OrderSheetType.php` enum에 새 케이스 추가
4. `factoryClass()` 메서드에서 새 케이스를 Factory 클래스에 매핑

예제:

```
// src/Factories/NewCompanyFactory.php
namespace Cable8mm\OrderSheet\Factories;

class NewCompanyFactory extends Factory
{
    public function definition(): array
    {
        return [
            '주문번호' => Faker::shared()->randomNumber(10),
            '주문일' => Faker::make()->dateTime(),
            // ... 더 많은 필드들
        ];
    }
}

// src/Enums/OrderSheetType.php
enum OrderSheetType
{
    case PlayautoType;
    case NewCompanyType; // 새 타입 추가

    public function factoryClass(): string
    {
        return match ($this) {
            self::PlayautoType => PlayautoFactory::class,
            self::NewCompanyType => NewCompanyFactory::class, // 새 Factory 매핑
        };
    }
}
```

요구사항
----

[](#요구사항)

- PHP 8.2 이상

설치
--

[](#설치)

```
composer require cable8mm/order-sheet
```

사용 방법
-----

[](#사용-방법)

```
use Cable8mm\OrderSheet\OrderSheet;
use Cable8mm\OrderSheet\Enums\OrderSheetType;

// 헤더를 포함한 XLSX 파일로 저장
OrderSheet::of(OrderSheetType::PlayautoType)
  ->count(10)              // 10개의 데이터 생성
  ->header()               // 헤더 행 포함
  ->path('dist')           // 저장할 경로 지정
  ->xlsx('my.xlsx');       // xlsx 파일로 내보내기 (기본: 'order_sheet.xlsx')

// 헤더 없이 CSV 문자열로 내보내기
$csv = OrderSheet::of(OrderSheetType::PlayautoType)
  ->count(10)
  ->csv();

// 헤더 없이 배열로 내보내기
$array = OrderSheet::of(OrderSheetType::PlayautoType)
  ->count(10)
  ->toArray();

// state()로 특정 필드 값 변경
$customData = OrderSheet::of(OrderSheetType::PlayautoType)
  ->count(5)
  ->state([
    '상태' => '배송완료',   // 상태 필드 변경
    '구매자명' => '홍길동', // 구매자명 필드 변경
  ])
  ->toArray();
```

### 테스트

[](#테스트)

```
# 테스트 실행
composer test

# 코드 커버리지와 함께 테스트
composer test-coverage

# 코드 스타일 검사
composer lint
```

### 변경사항

[](#변경사항)

[CHANGELOG](CHANGELOG.md)를 참고하세요.

기여하기
----

[](#기여하기)

[CONTRIBUTING](CONTRIBUTING.md)을 참고하세요.

### 보안

[](#보안)

보안 관련 문제는 이슈 트래커 대신 으로 이메일 보내주세요.

크레딧
---

[](#크레딧)

- [Samgu Lee](https://github.com/cable8mm)
- [All Contributors](../../contributors)

라이선스
----

[](#라이선스)

MIT 라이선스. 자세한 내용은 [License File](LICENSE.md)를 참고하세요.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance93

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~104 days

Recently: every ~130 days

Total

6

Last Release

35d ago

PHP version history (2 changes)v1.0.0PHP ^8.1

v1.2.2PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/c910c874a0263a18f9f976273054cd45faa3ffbcba7891992f4ab52d0656dd93?d=identicon)[Sam Lee](/maintainers/Sam%20Lee)

---

Top Contributors

[![cable8mm](https://avatars.githubusercontent.com/u/2672043?v=4)](https://github.com/cable8mm "cable8mm (18 commits)")

---

Tags

generatorlogisticsphpplayautoshoppingwmsxlsxcable8mmorder-sheet

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/cable8mm-order-sheet/health.svg)

```
[![Health](https://phpackages.com/badges/cable8mm-order-sheet/health.svg)](https://phpackages.com/packages/cable8mm-order-sheet)
```

###  Alternatives

[kimai/kimai

Kimai - Time Tracking

4.8k9.4k1](/packages/kimai-kimai)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

762297.9k53](/packages/civicrm-civicrm-core)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54686.7k25](/packages/solspace-craft-freeform)[pimcore/studio-backend-bundle

Pimcore Studio Backend Bundle

20248.6k29](/packages/pimcore-studio-backend-bundle)[oat-sa/tao-core

TAO core extension

64147.9k151](/packages/oat-sa-tao-core)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1617.3k16](/packages/2lenet-crudit-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
