定制 cgdsoftware/ro-addresses 二次开发

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

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

cgdsoftware/ro-addresses

Composer 安装命令:

composer require cgdsoftware/ro-addresses

包简介

Romanian Addreses extension for Addresses

README 文档

README

Romanian Addresses

Codacy Badge StyleCI License Total Downloads Latest Stable Version

Romanian Addresses extension for Addresses, the Laravel Enso package.

Screenshot

Features

  • makes changes to the addresses columns to better fit the Romanian locale
  • comes with two additional tables for Counties and Localities
  • comes with its own customized form for the edit and creation of addresses
  • comes with a personalized configuration
  • comes with its own VueJS components ro-addresses in order to customize the form and the template for the address cards
  • comes with its own trait
  • comes with an import that updates localities

Usage

  • add the package's AppServiceProvider to the config/app.php list of providers (package auto-discovery is not used as loading order is important)
  • run the migrations, as they change the addresses table, add two other tables, and insert all the localities
  • the configuration should be published, and inside you need to define the addresable types
  • for the models you want to make addressable, you should use the Addresses package's Addresable trait.
  • publish the VueJs component.
  • insert the RoAddreses vue component where required. It takes the same parameters as Addresses - id and type being the essential ones.
<ro-addresses :id="modelId" type="model_class">
</ro-addresses>

where

  • modelId is the addressable model id
  • model_alias is the respective model class

Import

If you need to use the import, publish the included template, importer and validator, and add the new import to your configuration:

'localitiesUpdate' => [
    'label' => 'Localities Update',
    'template' => 'app/Importing/Templates/localityUpdate.json',
    'importerClass' => 'App\Importing\Importers\LocalityUpdateImporter',
    'customValidatorClass' => \App\Importing\Validators\LocalityUpdateValidator::class,
    'sheetEntriesLimit' => 5000,
    'stopOnErrors' => true,
],

Publishes

  • php artisan vendor:publish --tag=ro-addresses-seeds - the seeders
  • php artisan vendor:publish --tag=ro-addresses-config - configuration file
  • php artisan vendor:publish --tag=ro-addresses-form - form used for creating/editing addresses
  • php artisan vendor:publish --tag=ro-addresses-import - form used for updating localities
  • php artisan vendor:publish --tag=enso-config - a common alias for when wanting to update the config, once a newer version is released
  • php artisan vendor:publish --tag=ro-addresses-assets - the VueJS component,
  • php artisan vendor:publish --tag=enso-assets - a common alias for when wanting to update the VueJS component, once a newer version is released
  • php artisan vendor:publish --tag=enso-seeders - a common alias for when wanting to update the seeders, once a newer version is released

Notes

The Laravel Enso Core package does NOT come with this package included, only with the generic Addresses.

This package depends on the Addresses and it does not work standalone.

Contributions

are welcome. Pull requests are great, but issues are good too.

License

This package is released under the MIT license.

cgdsoftware/ro-addresses 适用场景与选型建议

cgdsoftware/ro-addresses 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 01 月 28 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 cgdsoftware/ro-addresses 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 cgdsoftware/ro-addresses 我们能提供哪些服务?
定制开发 / 二次开发

基于 cgdsoftware/ro-addresses 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-28