This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('BASEPATH') OR exit ('Acceso directo no permitido'); | |
require_once(APPPATH . 'libraries/vendor/autoload.php'); | |
use josemmo\Facturae\Facturae; | |
use josemmo\Facturae\FacturaeParty; | |
use PHPMailer\PHPMailer\PHPMailer; | |
use PHPMailer\PHPMailer\Exception; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('BASEPATH') or exit('Acceso directo no permitido'); | |
header('Access-Control-Allow-Origin: *'); | |
//cargamos la librería Rest | |
use chriskacerguis\RestServer\RestController; | |
require(APPPATH . '/libraries/RestController.php'); | |
require(APPPATH . '/libraries/Format.php'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('BASEPATH') OR exit ('Acceso directo no permitido'); | |
header('Access-Control-Allow-Origin: *'); | |
//cargamos la librería Rest | |
use chriskacerguis\RestServer\RestController; | |
require( APPPATH.'/libraries/RestController.php'); | |
require( APPPATH.'/libraries/Format.php'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('BASEPATH') OR exit ('Acceso directo no permitido'); | |
header('Access-Control-Allow-Origin: *'); | |
//cargamos la librería Rest | |
use chriskacerguis\RestServer\RestController; | |
require( APPPATH.'/libraries/RestController.php'); | |
require( APPPATH.'/libraries/Format.php'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('BASEPATH') OR exit ('Acceso directo no permitido'); | |
use Firebase\JWT\JWT; | |
require( APPPATH.'/libraries/JWT.php'); | |
/* | |
clase que gestiona todas las acciones de logeado y seguridad de las claves | |
+---------------------------------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Services\FacturaController; | |
use CodeIgniter\Files\File; | |
use CodeIgniter\HTTP\ResponseInterface; | |
use DOMDocument; | |
use DOMXPath; | |
use ZipArchive; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Services; | |
use CodeIgniter\HTTP\CURLRequest; | |
use App\Models\RegistroFacturacionModel; | |
use App\Models\ConfiguracionModel; | |
use App\Models\UserModel; | |
/** | |
* CÓDIGOS OFICIALES según documentación AEAT: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Services\FacturaController; | |
use App\Models\FacturaModel; | |
use App\Models\RegistroFacturacionModel; | |
use App\Models\ConfiguracionModel; | |
use CodeIgniter\API\ResponseTrait; | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Services; | |
use BaconQrCode\Renderer\ImageRenderer; | |
use BaconQrCode\Renderer\Color\RGB; | |
use BaconQrCode\Renderer\GDLibRenderer; | |
use BaconQrCode\Writer; | |
use BaconQrCode\Encoder\Encoder; | |
use BaconQrCode\Common\ErrorCorrectionLevel; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Models; | |
use CodeIgniter\Model; | |
class FacturaModel extends Model | |
{ | |
protected $table = 'facturas'; | |
protected $primaryKey = 'id'; |
NewerOlder