Download the PHP package cable8mm/waybill without Composer

On this page you can find all versions of the php package cable8mm/waybill. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package waybill

PDF Waybill Generator

Coding Style Actions Run Tests Actions Latest Version on Packagist Packagist Dependency Version Total Downloads Packagist Stars

PHP로 PDF 운송장을 손쉽게 생성할 수 있는 라이브러리입니다. CJ대한통운을 기본으로 지원하며, 바코드 생성, 송신자/수신자 정보, 커스터마이징 가능한 레이아웃을 제공합니다. 쇼핑몰이나 물류 시스템에서 배송 레이블 생성을 자동화하는 데 적합합니다.

설치

Composer로 설치할 수 있습니다:

사용법

빠른 시작

기본 운송장을 PDF로 저장:

운송장 데이터를 배열로 가져오기 (API 응답 또는 CSV 내보내기용):

커스텀 데이터 사용하기 (state())

실제 주문 데이터로 특정 필드를 덮어씁니다:

인스턴스 분리 생성 후 mpdf 주입

Waybill 인스턴스를 먼저 만들고, 나중에 mpdf를 주입합니다:

여러 개의 운송장 생성

하나의 PDF 파일에 여러 장의 운송장을 저장:

PDF에서 특정 운송장만 추출하기

여러 페이지로 된 PDF에서 원하는 페이지 하나만 잘라냅니다:

설정

config.php 파일에서 mPDF 설정을 관리합니다. 한글 폰트(NanumBarunGothic), 용지 크기, 여백, 워터마크 등을 설정할 수 있습니다:

택배사 추가하기 (커스터마이징)

UPS 같은 새 택배사를 추가하려면 EnumFactory 클래스를 만들어야 합니다:

  1. src/Factories/ 폴더에 UpsFactory.php 생성
  2. src/Enums/ParcelService.php Enum에 Ups 케이스 추가
  3. factoryClass(), stub(), templateArea() 메서드 구현
  4. PDF 레이아웃을 위한 stubs/Ups.stub 파일 생성

테스트

변경 내역

자세한 내용은 CHANGELOG를 확인해주세요.

기여하기

기여 방법은 CONTRIBUTING을 참고해주세요.

보안

보안 관련 이슈는 Issue Tracker 대신 [email protected]으로 메일 부탁드립니다.

크레딧

라이선스

MIT 라이선스입니다. 자세한 내용은 License File을 확인해주세요.


All versions of waybill with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
cable8mm/stub-template Version ^1.0
fakerphp/faker Version ^1.0
mbezhanov/faker-provider-collection Version ^2.0
mpdf/mpdf Version ^8.0|^8.1
picqer/php-barcode-generator Version ^3.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package cable8mm/waybill contains the following files

Loading the files please wait ...