prashant7july/aadhar-number-validator 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

prashant7july/aadhar-number-validator

Composer 安装命令:

composer require prashant7july/aadhar-number-validator

包简介

India Aadhar Number Validator Moduel for zf2/Apigility

README 文档

README

India Aadhar Number Validator Moduel for zf2/Apigility

IndiaAadhaarNumberValidator Install in zf2 or Apigility

Run the following composer command:

  • $ composer require prashant7july/aadhar-number-validator

OR

"require": {
    "prashant7july/aadhar-number-validator": "1.0.0"
}

And then run composer update to ensure the module is installed.

Finally, add the module name to your project's config/application.config.php under the modules key:

return [
    /* ... */
    'modules' => [
        /* ... */
        'IndiaAadhaarNumberValidator',
    ],
    /* ... */
];

OR

config/modules.config.php 

return [
    /* ... */
    'IndiaAadhaarNumberValidator',
    /* ... */
];

How to create custom module (Like custom validator etc) and convert it in to the 3rd party vender module?

Step 1 - Structure in Module for IndiaAadhaarNumberValidator

─ IndiaAadhaarNumberValidator
	├── config
	│   └── module.config.php
	├── Module.php
	├── README.md
	└── src
	    └── IndiaAadhaarNumberValidator
	        └── Validator
	            └── AadharNumberValidator.php

Step 2 - Create a new repository -

Create a new repository

Step 3 - Take git branch in your local -

git clone https://github.com/prashant7july/aadhar-number-validator.git

Step 4 - Set Composer - composer.json and run $ composer dump-autoload -o

{
  "name": "prashant7july/aadhar-number-validator",
  "description": "India Aadhar Number Validator Moduel for zf2/Apigility",
  "license": "MIT",
  "keywords": [
    "zf2",
    "apigility",
    "Aadhar Number",
    "validator"
  ],
  "authors": [
    {
      "name": "Prashant Shekher",
      "email": "prashant7july@gmail.org",
      "role": "Author"
    }
  ],
  "require": {
    "php": ">=5.3.3",
    "zendframework/zendframework": "2.*"
  },
  "minimum-stability": "stable",
  "autoload": {
    "psr-0": {
      "IndiaAadhaarNumberValidator\\": "src/"
    },
    "classmap": [
      "Module.php"
    ]
  }
}

RUN Composer Validator Command

  • $ composer validate

Step 5 - Just Commit the Code

  • $ git add .
  • $ git commit -m "add module"
  • $ git push origin master

Step 6 - Submit Package in to Packagist

https://packagist.org/packages/submit

Step 7 - How to update packages?

This package is not auto-updated. Please set up the GitHub Service Hook for Packagist so that it gets updated whenever you push!

Enabling the Packagist service hook ensures that your package will always be updated instantly when you push to GitHub. To do so you can:

  • Go to your GitHub repository
  • Click the "Settings" button
  • Click "Integrations & services"
  • Add a "Packagist" service, and configure it with your API token, plus your Packagist username
  • Check the "Active" box and submit the form

You can then hit the "Test Service" button to trigger it and check if Packagist removes the warning about the package not being auto-updated.

Step 8 - Set Git Versioning [How to change version (dev-master) in packagist.org]

Solution -

  • $ git tag -a 1.0.0 -m 'release of version 1.0.0'
  • $ git push origin 1.0.0

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2018-06-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固