juicecrm/geodata
Composer 安装命令:
composer require juicecrm/geodata
包简介
Geographical Data for Laravel 10 and later
README 文档
README
Store geographical data, and make it available via Laravel 10 Models.
Installation
composer require "juicecrm/geodata" "^1.0"
Usage
At first you may need to run migrations. The generated tables have no prefix by default. See the Customizations section below.
The initial setup of the data is accomplished by running the following commands
php artisan migrate php artisan geodata:retrieve php artisan geodata:extract php artisan geodata:store
You can also use php artisan geodata:refresh. This will run the above three geodata artisan commands in succession for you.
Customizations
If you want to prefix the table names, so that you can make a distinction in your own data model between JuiceCRM GeoData Country models vs your own models, you change the GeoData configuration. In order to so, you will need to publish the configuration file.
php artisan vendor:publish --provider="JuiceCRM\\GeoData\\GeoDataServiceProvider" --tag=config
This will create a geodata.php file in the config directory of your project. In that file, you'll find a setting table_prefix that you can update to your liking.
Testing
The package will have tests where it is deemed necessary.
Changelog
There is a Changelog.md file that lists all the changes made since version 1.0.0.
Contributing
Anybody can contribute anything to this software. Feel free to participate. Please be mindful to have an overall pleasant demeanor and be polite to your co-contributors. Exsessive rude or impolite behavior will not be tolerated.
Credits
- Antonio Carlos Ribeiro, whose countries package provided much of the underlying data knowledge.
- Guus Leeuw (aka PHPGuus) as maintainer of this package.
License
This software is protected by the GPLv3 License.
juicecrm/geodata 适用场景与选型建议
juicecrm/geodata 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 103 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 03 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 juicecrm/geodata 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 juicecrm/geodata 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 103
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 29
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2023-03-04