Download the PHP package drwcli/pattern without Composer

On this page you can find all versions of the php package drwcli/pattern. 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 pattern

drwcli

Drwcli is a dependency-free toolkit for building CLI-only applications in PHP created by @walegbenga. This repository is a template you can use to create a new application that has a single dependency: drwcli/drwcli.

Why drwcli

The current trend in software development is basing your project on a big pile of unknowns. There is nothing wrong in using third party software, but if more than 80% of your application is out of your control, things can get messy. What usually happens is that you don't even know what packages you're depending on, when using the most popular frameworks.

It can be used for microservices, personal dev tools, bots and little fun things.

Getting Started

You'll need php-cli and Composer to get started.

Create a new project with:

Once the installation is finished, you can run drwcli it with:

This will show you the default app signature:

The default help command that comes with drwcli (app/Command/Help/DefaultController.php) auto-generates a tree of available commands:

The help test command, defined in app/Command/Help/TestController.php, shows an echo test of parameters:

The simplest app

The simplest drwcli script doesn't require using Command Controllers at all. You can delete the app folder and use registerCommand with an anonymous function, like this:

Created with Drwcli


All versions of pattern with dependencies

PHP Build Version
Package Version
Requires drwcli/drwcli Version ^1.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 drwcli/pattern contains the following files

Loading the files please wait ....