jplarar / facturama-bundle
A simple Symfony2+ bundle for the API for Facturama.
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.6
- guzzlehttp/guzzle: ^6.0
- symfony/config: ^2.0 || ^3.0 || ^4.0
- symfony/dependency-injection: ^2.0 || ^3.0 || ^4.0
- symfony/framework-bundle: ^2.0 || ^3.0 || ^4.0
- symfony/http-foundation: ^2.0 || ^3.0 || ^4.0
- symfony/http-kernel: ^2.0 || ^3.0 || ^4.0
- symfony/options-resolver: ^2.0 || ^3.0 || ^4.0
- symfony/security: ^2.0 || ^3.0 || ^4.0
- symfony/validator: ^2.0 || ^3.0 || ^4.0
This package is auto-updated.
Last update: 2025-04-06 07:37:45 UTC
README
A simple Symfony2 bundle for the API for AWS Facturama.
Setup
Step 1: Download JplararFacturamaBundle using composer
Add Facturama Bundle in your composer.json:
{ "require": { "jplarar/facturama-bundle": "dev-master" } }
Now tell composer to download the bundle by running the command:
$ php composer.phar update "jplarar/facturama-bundle"
Step 2: Enable the bundle
Enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Jplarar\FacturamaBundle\JplararFacturamaBundle() ); }
Step 3: Add configuration
# app/config/config.yml jplarar_facturama: facturama_username: %facturama_username% facturama_password: %facturama_password% serie: %serie% currency: %currency% expedition_place: %expedition_place% cfdi_use: %cfdi_use% payment_form: %payment_form% unit_code: %unit_code% unitCode: %unitCode% taxes: %taxes% env: %env%
Usage
Using service
<?php $facturamaClient = $this->get('facturama_client'); ?>
##Example
###Upload new file to Facturama
<?php $facturamaClient->write($key, $content, $mimeType); ?>