定制 gam/laravel-sat-catalogs 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

gam/laravel-sat-catalogs

最新稳定版本:v2.0.2

Composer 安装命令:

composer require gam/laravel-sat-catalogs

包简介

Provides a artisan command to automatically update SAT catalogs. Use a DB facade to access them.

README 文档

README

Source Code Total Downloads GitHub Workflow Status GitHub GitHub release (latest by date) Packagist PHP Version Support

Simple package providing an Artisan command to update the SAT Catalogs. You can access them through the Catalog Facade.

Installation

You can install the package via composer:

composer require gam/laravel-sat-catalogs

Usage

  1. Set a sqlite3 connection for the driver catalogs. You can change the driver name in config/catalogs.php.
    Example:

    <?php
    /* Custom driver for CFDI Catalogs */
         'catalogs' => [
             'driver' => 'sqlite',
             'url' => '',
             'database' => database_path('catalogs.sqlite3'),
             'prefix' => '',
             'foreign_key_constraints' => true,
         ],
  2. Update the catalogs database

    # Si no se especifica --PATH los recursos se descargan en `storage/app/catalogs`
    php artisan catalogs:update --path={$MY_PATH}
  3. Access to the catalogs using Catalog Facade:

    # check if catalog exists
    Catalog::exists('cfdi_40_productos_servicios');
    
    # get a list of catalogs name
    Catalog::availables()
    
    # Get a Query Builder instance
    $ps = Catalog::of('cfdi_40_productos_servicios');
    echo $ps->find('10161511')->texto
    
    # Get the text value of certain row
    $monedaText = Catalog::textOf('cfdi_40_monedas', 'MXN');
    echo $monedaText; # Peso Méxicano

Testing

composer dev:test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email antgam95@gmail.com instead of using the issue tracker.

Credits

License

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

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

统计信息

  • 总下载量: 88
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-03-25