2017 © Pedro Peláez
 

library danphpe

A simple library to manage DANFES stored in S3

image

natuelabs/danphpe

A simple library to manage DANFES stored in S3

  • Wednesday, February 21, 2018
  • by diogotozzi
  • Repository
  • 3 Watchers
  • 0 Stars
  • 40 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 29 % Grown

The README.md

This is a simple package to read, merge and save danfes., (*1)

Actually this package only read danfes on S3 and save on FileSystem., (*2)

How to use

<?php

require 'vendor/autoload.php';

$region = 'us-east-1';
$environment = 'development';
$credentials = [
  'key' => '',
  'secret' => '',
];
$bucket = 'your.bucket';

$reader = new Natuelabs\Danphpe\Reader\S3($region, $environment, $credentials, $bucket);

$storage = new Natuelabs\Danphpe\Storage\FileSystem('/tmp');

$storage->save(
  'merged.pdf',
  Natuelabs\Danphpe\PDF\merge([
    Natuelabs\Danphpe\PDF\merge\raw($reader->getContents('3218021701809100027655020000375281000000020.pdf')),
    Natuelabs\Danphpe\PDF\merge\raw($reader->getContents('3218021701809100027655020000375291000000036.pdf')),
    Natuelabs\Danphpe\PDF\merge\raw($reader->getContents('3218021701809100027655020000375301000000045.pdf'))
  ])
);

How run the tests

vendor/bin/phpunit

The Versions

21/02 2018

dev-master

9999999-dev

A simple library to manage DANFES stored in S3

  Sources   Download

MIT

The Requires

 

The Development Requires

by Edson Lima
by Diogo Tozzi

21/02 2018

1.0.2

1.0.2.0

A simple library to manage DANFES stored in S3

  Sources   Download

MIT

The Requires

 

The Development Requires

by Edson Lima
by Diogo Tozzi

21/02 2018

1.0.1

1.0.1.0

A simple library to manage DANFES stored in S3

  Sources   Download

MIT

The Requires

 

The Development Requires

by Edson Lima
by Diogo Tozzi

21/02 2018

1.0

1.0.0.0

A simple library to manage DANFES stored in S3

  Sources   Download

MIT

The Requires

 

The Development Requires

by Edson Lima