Download the PHP package f-oris/easy-console without Composer

On this page you can find all versions of the php package f-oris/easy-console. 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 easy-console

Foris/Easy/Console

基于Laravel artisan框架提取的简易终端交互扩展包

Build Status codecov Latest Stable Version Latest Unstable Version Total Downloads

安装使用

环境要求

通过composer安装

基本用法

1. 准备工作

通过composer引入扩展包后,在项目带埋目录创建一个Console目录,里面创建一个子文件夹Commands,一个Application.php类文件,同时在项目根目录创建一个入口文件,如命名为artisan,各文件相关内容如下

-- Application.php文件内容

-- artisan 文件内容

创建完毕后,项目的主要相关目录结构如下

app为composer.json文件中,根命名空间对应的文件目录

2. 创建自定义命令

在项目根目录下,通过扩展包自带指令make:command,创建一个自定义命令HelloCommand

命令创建完毕后,在src/Commands目录找到HelloCommand.php文件,以在控制台输出Hello world为例,编写业务代码代码,代码如下

返回到项目根目录下,执行命令php artisan hello即可在终端输出文字内容Hello world

License

MIT License

Copyright (c) 2019-present F.oris [email protected]


All versions of easy-console with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
ext-json Version *
symfony/console Version ^3.0|^4.0|^5.0
f-oris/easy-support Version ^2.0
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 f-oris/easy-console contains the following files

Loading the files please wait ....