ssplugin/ss-user-import-export
Composer 安装命令:
composer require ssplugin/ss-user-import-export
包简介
Export users data in the CSV format and Import users using CSV file.
README 文档
README
Import users and export users made fast and simple! Craft User migration is vital part when site migration process. This plugin help new user import using csv and export user in the csv file. As well as keep users data in the CSV format.
Requirements
This plugin requires Craft CMS 5 or later and PHP 8.2 or later.
Installation
To install the plugin, follow these instructions.
- In the Craft CMS Control Panel, go to Settings → Plugins Store and search for SS User Import Export:
OR
-
Open your terminal and go to your Craft project:
cd /path/to/project -
Then tell Composer to load the plugin:
composer require ssplugin/ss-user-import-export -
Executing Migrations:
php craft migrate/up --plugin=ss-user-import-export -
In the Craft CMS Control Panel, go to Settings → Plugins and click the “Install” button for SS User Import Export:
SS User Import Export features
- Easy to install and easy to use.
- No needed any extra configuration.
- Export only the data you need.
- User migration from one site to other.
- Export user fields data if user fields added.
- Export user as per your choice like only active users export.
- Field mapping is available while importing users.
- Choice to Send Activation Email for newly imported Active Users.
Configuring SS User Import Export
-
Craft Pro version is required because multiple users supported only in the pro version.
-
After plugin installed go to the plugin settings. If plugin not installed then first install plugin from settings > plugins.
-
Importing a CSV file format:
- Firts row in the CSV file must be heading.
Using SS User Import Export
Export
- Export users using group wise or all the users in the CSV file.
- You can able to enter file name and save exporting file as per your choice name.
- Select status for example only active status users will export. If not selcet any one then all the users exported.
Import
-First, To import multiple users, you need to upload a CSV file.. You can create the CSV file or you can export a CSV file from Export tabs then edit it. Also mapping Field as necessary:
- The CSV file must include all of the columns in the following:
- Field mapping:
- Username* : Username must be a unique and required field.
- Email* : Email must be a unique and valid otherwise users will not imported.
- FirstName (Optional): Select value for first name otherwise empty added.
- LastName (Optional): Select value for last name otherwise empty added.
- Group* : First you need to create a group after that add group handle value in the CSV file. if group value will empty or group handle value incorrect then Default User Group consider (Settings->Users->settings(Allow public registration?) ).
- Status (Optional) : Default value is pending. Status value should be active, pending, suspended.
- Password (Optional): This field value is a simple string not a hashed values. If password value will empty and user status active then activation mail will send to your email address where password set link available.
-User fields:
Supported fieldType is 'Plain Text', 'Radio Buttons', 'Dropdown', 'Lightswitch', 'Email', 'URL' and 'Number'.
SS User Import Export Roadmap
Three are two tabs avaliable in plugin settings.
(1) Export:
You can able to select multiple groups and status.
If the group is not selected then all the users exported and the same thing will happen in the Status.
(2) Import: There are a few things need to understand.
- Username and Email are unique and required.
- Activation mail will only go if the proper email setting will be done( Settings < Email ).
- You have to manualy create user group and then use group handle value in the CSV file.
- Pending status: User Status is a pending then admin need to active user account after that user will be able to login.
But if password not import or empty while importing then admin need to Send Activation Mail manualy from CP.
- Active status: Activation mail has been sent to user email address where user can able to set password.
But if password imported while user importing then use r can able to directly login a account.
Brought to you by ssplugin
ssplugin/ss-user-import-export 适用场景与选型建议
ssplugin/ss-user-import-export 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.48k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2020 年 05 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cms」 「Craft」 「craftcms」 「craft-plugin」 「ss user import export」 「user migration」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ssplugin/ss-user-import-export 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ssplugin/ss-user-import-export 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ssplugin/ss-user-import-export 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Expand, collapse, change the status of, or delete multiple blocks in a Matrix field simultaneously.
GraphQL authentication for your headless Craft CMS applications.
Set Links with a specific language parameter
Supercharged text field validation.
Integrate with Snipcart.
Restrict user registration by domain in Craft CMS, allows you to limit who can register for your site based on their email address.
统计信息
- 总下载量: 3.48k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2020-05-12