承接 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
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固