sikessem/program

SIKessEm PHP 程序

dev-main 2021-07-15 18:04 UTC

This package is auto-updated.

Last update: 2024-09-16 01:14:49 UTC


README

SIKessEm PHP 程序

安装

使用 Composer 通过以下命令安装库

composer require sikessem/program

或者 点击此处直接下载 ZIP 格式

用法

如果您正在使用 Composer,请包含 Composer 自动加载文件。否则,您可以在所有情况下使用以下示例

  1. 使用命令 cd my_working_directory 进入您的项目目录,其中 my_working_directory 是您的项目目录
  2. 创建 boot.php 文件(您可以使用命令 touch boot.php
  3. 在代码编辑器中打开新文件(boot.php
  4. 复制并粘贴以下代码
<?php
/**
 * @var string The real path of program directory
 */
$working_directory = __DIR__ . DIRECTORY_SEPARATOT;

$sys = require_once $working_directory . 'init.php';

$sys->import('main');

main($sys);
  1. 运行您的启动文件(boot.php

要求

PHP 8.0.0 或更高版本(推荐至少 8.0.7 以避免潜在的错误)

作者

SIGUI Kessé Emmanuel | GitHub | npm | Twitter | sikessem@omninf.com | sikessem.omninf.com

安全报告

请将任何敏感问题发送至 sikessem@omninf.com。谢谢!

许可证

程序受 Apache 2.0 许可证许可 - 有关详细信息,请参阅 LICENSE 文件。

贡献

对于任何贡献,请按照以下步骤操作

  1. 使用 git clone https://github.com/SIKessEm/Program.phpgit remote add origin https://github.com/SIKessEm/Program.php 克隆仓库,然后 git branch -M main
  2. 创建新的分支。例如: git checkout -b my_contribution
  3. 进行更改并使用 git push -u origin main 发送更改

您将被通知后续步骤。