nguyenanhung/ template-frontend-package
前端模块服务包结构模板仓库
v1.0.5
2024-09-21 20:06 UTC
Requires
- php: ^5.6 || ^7.0 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- nguyenanhung/framework: ^1.0
- nguyenanhung/web-builder-assets: ^1.0
- nguyenanhung/web-builder-helper: ^2.0 || ^1.0
- nguyenanhung/web-builder-templates: ^2.0 || ^1.0
Requires (Dev)
- symfony/polyfill: ^1.26
- tramtro/make-some-noise: ^1.0
README
模板开始前端模块包
前端模块仓库模板 - 基础、简单和轻量级
使用此模板
首先,您可以为新项目使用此模板:使用此模板
其次,克隆您的项目到您的机器上的路径
最后,编辑项目根目录下的文件composer.json
{
"type": "library",
"name": "nguyenanhung/template-frontend-package",
"description": "Structure Repository Template for Frontend Module Service Package",
"keywords": [
"frontend",
"helper",
"library",
"php"
],
"homepage": "https://github.com/nguyenanhung/template-frontend-package",
"license": "MIT",
"minimum-stability": "stable",
"authors": [
{
"name": "Nguyen An Hung",
"email": "dev@nguyenanhung.com",
"homepage": "https://nguyenanhung.com",
"role": "Developer"
}
],
"require": {
"php": ">=7.1.3",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"symfony/polyfill": "^1.26",
"nguyenanhung/my-debug": "^3.0 || ^2.0",
"nguyenanhung/my-cache": "^3.0 || ^2.0",
"nguyenanhung/database": "^3.0 || ^2.0",
"nguyenanhung/security": "^3.0 || ^2.0",
"nguyenanhung/requests": "^3.0 || ^2.0",
"nguyenanhung/monitor": "^3.0 || ^2.0",
"nguyenanhung/image": "^3.0 || ^2.0",
"nguyenanhung/helpers": "^3.0 || ^2.0",
"nguyenanhung/seo": "^3.0 || ^2.0",
"nguyenanhung/web-builder-helper": "^1.0",
"nguyenanhung/web-builder-templates": "^1.0"
},
"require-dev": {
"tramtro/make-some-noise": "^1.0"
},
"autoload": {
"psr-4": {
"nguyenanhung\\Frontend\\Your_Project\\": "src/"
},
"files": [
"helpers/helpers.php"
]
}
}
将命名空间Your_Project替换为后端项目空间,例如:Google。更改命名空间后,项目命名空间相同"nguyenanhung\\Frontend\\Google\\": "src/"
完成,现在您可以开始编写新的精彩助手和库了。
联系 & 支持
如果有任何问题 & 请求,请联系以下信息
来自越南的爱与祝福 <3