承接 atoman/access-code 相关项目开发

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

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

atoman/access-code

Composer 安装命令:

composer require atoman/access-code

包简介

Create a package to generate access code for employees

README 文档

README

Access Code is a PHP application that helps to create a random access code for a door system access. The application is built with a default rules which can also be adjusted to preferences of the developer.

Features for the application

  • Generate a unique with no duplicate from the database
  • Generated codes are persisted
  • While generating, code can be allocated to a particular user or/and a category.
  • A used code can be reset for use and can be reallocated to new or old user or/and category
  • Comprises of a default 6-digit code which can be extended up to 9-digit length
  • Code default rules are set to check for a void on palindrome and the rule can be changed while generating.
  • For any length of code generated, character repetition can be set to not more that 1 character repetition at least, default is not more than 3 repetition.
  • Access code has default at least 3 character sequence length which can also be set to user preferences with at least 1 sequence length.
  • Setup can be made with an adjustment to increase and decrease the default at least 3 unique characters up to at least 1 unique character.
  • Expiration date can be set.
  • Access code can be set to multiple usage, with number of usage it can be used.
  • Code can be set to automatically deletion after usage.

Help and docs

Package can be access through composer package website and Git repository:

Installing atoman\access-code

The recommended way to install atoman\access-code is through Composer.

composer require atoman/access-code

Instruction after requiring the package

Check if the package is automatically discovered on your Laravel application.

  • Navigate to config/app.php.
  • Check if `Atoman\AccessCode\AccessCodeServiceProvider::class,` is added into your Provider section.
  • Paste `Atoman\AccessCode\AccessCodeServiceProvider::class,` inside you provider section if not already added.
  • Go to the root of your Application, on terminal/Command Prompt, run `php artisan vendor:publish -- force` to help publish some publishable files like Migration file and config of the package.
  • Check for Provider `Atoman\AccessCode\AccessCodeServiceProvider` to be published to your application.
  • Select `Atoman\AccessCode\AccessCodeServiceProvider` to publish accessCode.php and Migration files.
  • Run migration `php artisan migrate` to migrate package migration file to your database.

Usage Intructions

use Atoman\AccessCode\App\Http\Services\Access;

public function (Access $access){
    $accessCode = $access->accessCode();     // Generate access code (default length 6)
    $accessCode = $access->accessCode(8);     // Generate access code (defining length 8 ) Hint: defined length must always be >= default 6
}                                                   

Adjustment to default rules when generating Code

use Atoman\AccessCode\App\Http\Services\Access;

public function (){
    $accessCode = new Access();

    $accessCode->setCharacterRepeat(4);                     //setting value for repetition character  
    $accessCode->setCharacterUniqueness(4);                 //setting value for uniqueness
    $accessCode->setPalindrome(false);                      // set if palindrome should be check
    $accessCode->setSequenceLength(4);                      //set length of sequence

    $accessCode = $access->accessCode(8);                    // Generate access code (defining length 8 )
}                                                   

Accessing the Interface

You can access the interface for the package while your application is running, navigate to your http://localhost:8000/access to view the interface.

You will have access to Documentation page, Create Code Page, List all code page, Confirm Code page, Assign Code page.

Version Guidance

Security

If you discover a security vulnerability within this package, please send an email to atoworldinc@gmail.com or ato4life2008@gmail.com. All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced.

License

atoman\access-code is made available under the MIT License (MIT). Please see License File for more information.

atoman/access-code 适用场景与选型建议

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

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

围绕 atoman/access-code 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-09