Download the PHP package pkg6/consoles without Composer

On this page you can find all versions of the php package pkg6/consoles. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package consoles

Consoles

Consoles 是一个功能强大且灵活的 PHP 命令行解决方案,既可作为独立的 CLI 工具使用,也可无缝集成到现有项目中。它内置了多种实用功能模块,包括计划任务调度、Phar 打包、文件监听等,帮助开发者高效构建与管理命令行应用。

项目特点

安装

全局命令安装

composer global require pkg6/consoles

使用 Composer 安装

快速开始

初始化项目

使用初始化命令快速创建一个新的 Consoles 项目:

初始化成功后,项目结构如下:

运行应用

初始化后,可以通过以下命令运行应用:

Phar 打包

console.cli 提供了强大的 Phar 打包功能,可以将项目打包成单个 Phar 文件,方便分发和使用。

使用方法

可用选项

使用示例

注意事项

  1. 确保 phar.readonly 配置已设置为 Off,否则无法创建 Phar 文件。
  2. 项目必须已经安装了依赖(执行过 composer install)。
  3. 如果不指定 Phar 文件名称,将默认使用 composer.json 中的项目名称。

计划任务调度

Consoles 提供了强大的计划任务调度系统,可以基于 cron 表达式执行各种任务,包括命令、闭包函数和外部脚本。

#  列出所有的计划任务
consoles schedule:list

# 执行计划任务(需要加入到系统定时任务中)
consoles schedule:run

# 执行计划任务
consoles schedule:work

文件监听功能

Consoles 提供了文件监听功能,可以监控指定目录的文件变化,并在文件变化时自动执行命令。

使用方法

可用选项

示例:开发过程中自动测试

贡献指南

  1. Fork 项目
  2. 创建功能分支 (git checkout -b feature/fooBar)
  3. 提交更改 (git commit -am 'Add some fooBar')
  4. 推送到分支 (git push origin feature/fooBar)
  5. 创建新的 Pull Request

许可证

本项目使用 MIT 许可证。详情请查看 LICENSE 文件。


All versions of consoles with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-json Version *
dragonmantank/cron-expression Version ^3.3
symfony/finder Version ^5.4|^6.0
pkg6/console Version ^0.1
twig/twig Version ^2.0
pkg6/var-dumper Version ^0.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pkg6/consoles contains the following files

Loading the files please wait ...