dbhuang/cron-php

There is no license information available for the latest version (dev-master) of this package.

This is a PHP learning framework based on swoole

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

dev-master 2020-03-19 11:00 UTC

This package is auto-updated.

Last update: 2024-09-19 21:05:36 UTC


README

基于swoole封装的PHP框架

基于Composer的文件引入,遵循PSR-4规则

# composer init

# Package name (<vendor>/<name>) [administrator/corn-php]: dbhuang/cron-php
# Description []:This is a PHP learning framework based on swoole
# Author [, n to skip]: dbhuang <1016516927@qq.com>

# 其余回车

{
    "name": "dbhuang/cron-php",
    "description": "This is a PHP learning framework based on swoole",
    "type": "project",
    "authors": [
        {
            "name": "dbhuang",
            "email": "1016516927@qq.com"
        }
    ],
    "require": {}
}

在composer.json添加autoload相关配置,然后执行composer dump-autoload使其生效
    "autoload": {
        "psr-4": {
            "Core\\": "Core",
            "Application\\": "Application"
        }
    }



配置好Core和Application两个命名空间极其对应目录
在bin/cron.php引入vender中的autoload.php实现自动文件引入