Download the PHP package smart-dato/brt-documento-di-ritiro without Composer

On this page you can find all versions of the php package smart-dato/brt-documento-di-ritiro. 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 brt-documento-di-ritiro

BRT Documento di Ritiro

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Generate BRT (Bartolini) "Documento di Ritiro" pickup paperwork from plain PHP data objects:

Everything is rendered in memory and returned as binaries — the package never touches your models, storage paths or database rows (except the barcode-range table it owns). Optional helpers store the results on any Laravel filesystem disk.

Requirements

Installation

Publish the config file if you need to override defaults:

The segnacollo allocator persists its number ranges in a table (default brt_documento_di_ritiro). Publish and run the migration unless the table already exists in your schema:

Usage

Generating a documento di ritiro

Describe the pickup with data objects and let the fluent builder render everything:

branding() and clientCode() are required: the BRT client code, terms URL, side logo and non-IT fallback recipient are your business data — the package ships none of it.

The GenerationResult carries every artifact and the barcode bookkeeping:

Store the artifacts on any Laravel disk — the helpers throw a StorageException when a write fails:

Parcels that already carry a barcode keep it (existingBarcode), and parcels that already have a label are skipped but stay part of the merged document (hasLabel + existingLabelPdf).

Segnacollo barcode allocation

Barcodes are drawn from number ranges BRT assigns to you. Seed them once:

The database allocator hands out sequential numbers with the BRT check digit inside a locking transaction, rolls over between ranges and returns null on exhaustion (the generator then falls back to the parcel key). Monitor the remaining stock:

Bind your own SegnacolloAllocator implementation to replace the database-backed default.

FNVAO booking record

Render the fixed-width booking file BRT expects when a pickup is announced:

Configuration

A note on the bundled fonts

The rendered form uses Verdana and Franklin Gothic, which are proprietary typefaces. The bundled copies exist so the output matches the documents BRT has historically accepted — make sure your own licensing situation covers their use, or point the fonts config entries at typefaces you are licensed for.

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of brt-documento-di-ritiro with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
ext-gd Version *
barryvdh/laravel-dompdf Version ^3.0
illuminate/contracts Version ^11.0||^12.0||^13.0
intervention/image Version ^2.3
laminas/laminas-barcode Version ^2.14
setasign/fpdf Version ^1.8
setasign/fpdi Version ^2.3
spatie/laravel-data Version ^4.7
spatie/laravel-package-tools Version ^1.16
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 smart-dato/brt-documento-di-ritiro contains the following files

Loading the files please wait ...