nguyenanhung/template-crawler-package

v1.0.2 2024-09-21 20:07 UTC

This package is auto-updated.

Last update: 2024-09-21 20:07:34 UTC


README

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

模板启动爬虫包

仓库爬虫包模板 - 基础、简单和轻量级

使用此模板

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

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

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

{
    "type": "library",
    "name": "nguyenanhung/template-crawler-package",
    "description": "Structure Repository Template for Crawler Package",
    "keywords": [
        "crawler",
        "helper",
        "library",
        "php"
    ],
    "homepage": "https://github.com/nguyenanhung/template-crawler-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": "*",
        "nguyenanhung/requests": "^3.0",
        "nguyenanhung/database": "^3.0",
        "nguyenanhung/my-crawler": "^1.0"
    },
    "autoload": {
        "psr-4": {
            "nguyenanhung\\Crawlers\\Your_Project\\": "src/"
        },
        "files": [
            "helpers/helpers.php"
        ]
    }
}

将命名空间 REPLACE_FOR_YOUR 替换为项目爬虫空间,例如: Google。更改命名空间后,项目命名空间相同 "nguyenanhung\\Crawlers\\Google\\": "src/"

完成,现在您可以编写新的酷炫助手和库了。

联系 & 支持

如果有任何疑问和请求,请联系以下信息

来自越南的爱与祝福 <3