Download the PHP package pittacusw/parse-bill without Composer

On this page you can find all versions of the php package pittacusw/parse-bill. 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 parse-bill

pittacusw/parse-bill

Laravel package for parsing Chilean DTE XML documents and rendering them as PDF files.

The package is designed around the existing printable layout used by this project. The PDF view contract has been kept intact during the optimization pass so margins, page structure, cedible copy rules, and the legal layout behavior continue to follow the current implementation.

What It Does

Requirements

Installation

Publish the package assets and run the migrations:

Seed Required Reference Data

The PDF renderer expects lookup data for:

Seed the required tables with the included seeders:

Optional seeders are also available for economic activities, reference types, and transfer types.

Configuration

After publishing, the package config file is available at config/pittacusw-parse-bill.php.

By default it points to these models:

Override these entries if your application uses custom models for the same tables.

Usage

Parse XML

$xmlOrPath can be:

The parser normalizes single Detalle, Referencia, DscRcgGlobal, and ImptoReten nodes into arrays so the renderer can iterate them consistently.

Read the Signature Value

Generate a PDF

You can also save or return the binary output:

Layout Guarantees

This package intentionally preserves the current visual PDF structure:

If you need to change layout rules for another legal regime or document standard, do it through dedicated view changes and add fixture-based tests before shipping.

Testing

The package now includes a PHPUnit + Testbench suite covering:

Run the suite with:

Notes


All versions of parse-bill with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-dom Version *
ext-json Version *
ext-libxml Version *
ext-simplexml Version *
barryvdh/laravel-dompdf Version ^3.1
freshwork/chilean-bundle Version ^2.2
laravel/framework Version ^13.2
milon/barcode Version ^13.1
neitanod/forceutf8 Version ^2.0
pittacusw/core Version ^2.0
spatie/array-to-xml Version ^3.4
spatie/laravel-package-tools Version ^1.93
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 pittacusw/parse-bill contains the following files

Loading the files please wait ...