nguyenanhung/template-php-lib

仓库辅助器、库的模板 - 基础、简单、轻量级

v1.0.4 2024-09-21 20:05 UTC

This package is auto-updated.

Last update: 2024-09-21 20:06:01 UTC


README

Latest Stable Version Total Downloads Daily Downloads Monthly Downloads License PHP Version Require

模板启动辅助器、库

仓库辅助器、库的模板 - 基础、简单、轻量级

使用此模板

首先,您可以为新项目使用此 模板使用此模板

其次,将您的项目克隆到您的机器上的路径

最后,编辑项目根目录下的 composer.json 文件

{
    "type": "library",
    "name": "nguyenanhung/template-php-lib",
    "description": "Template for repository helper, library - Basic, Simple and Lightweight",
    "keywords": [
        "template",
        "helper",
        "library",
        "php"
    ],
    "homepage": "https://github.com/nguyenanhung/template-php-lib",
    "license": "MIT",
    "minimum-stability": "stable",
    "authors": [
        {
            "name": "Nguyen An Hung",
            "email": "dev@nguyenanhung.com",
            "homepage": "https://nguyenanhung.com",
            "role": "Developer"
        }
    ],
    "require": {
        "php": ">=5.6"
    },
    "autoload": {
        "psr-4": {
            "nguyenanhung\\Libraries\\REPLACE_FOR_YOUR\\": "src/"
        },
        "files": [
            "helpers/helpers.php"
        ]
    }
}

将命名空间 REPLACE_FOR_YOUR 替换为库空间,例如: JSON。更改命名空间后,项目命名空间相同 "nguyenanhung\\Libraries\\JSON\\": "src/"

完成,现在您可以编写新的精彩辅助器和库了。

联系 & 支持

如果有任何问题 & 请求,请联系以下信息

来自越南的爱与祝福 <3