承接 quarryteam/module-customer-uuid 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

quarryteam/module-customer-uuid

最新稳定版本:1.0.0

Composer 安装命令:

composer require quarryteam/module-customer-uuid

包简介

Adds a unique UUID attribute to Magento customers

README 文档

README

Adds a uuid attribute to customers:

  • Stored in dedicated customer UUID EAV backend table with DB-level unique UUID constraint.
  • Automatically generated for existing customers on install and for new customers on save.
  • Exposed via GraphQL on the Customer type as uuid for authenticated customers.
  • Displayed on the Admin customer grid.
  • Visible in Admin customer edit form (customer account section) and treated as immutable once set.
  • UUID generation uses ramsey/uuid (v4).

Installation (composer)

To install via composer:

composer require quarryteam/module-customer-uuid
bin/magento module:enable QuarryTeam_CustomerUuid
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento indexer:reindex customer_grid
bin/magento cache:clean

GraphQL usage

API Access

  1. Create a customer token
curl -X POST "http://<magento-base-url>/graphql/"" \\

-H "Content-Type: application/json" \\

-d '{"query":"mutation generateCustomerToken(\n  $email: String!,\n  $password: String!\n) {\n  generateCustomerToken(\n    email: $email,\n    password: $password\n  ) {\n    token\n  }\n}","variables":{"email":"<customer email>","password":"<customer password>"}}'

Response: a token string (JWT-like value depending on setup).

  1. Query UUID via GraphQL Use the token in the Authorization header:
curl -X POST "https://<magento-base-url>/graphql" \\

-H "Content-Type: application/json" \\

-H "Authorization: Bearer <customer-token>" \\

-d '{"query":"{ customer { email uuid } }"}'

Example GraphQL query:

{
  customer {
    email
    uuid
  }
}

Tests

Unit tests (module-local)

Run PHPUnit for the module unit tests (requires Magento unit test framework setup):

vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist vendor/quarryteam/module-customer-uuid/Test/Unit

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2026-03-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固