Download the PHP package pollora/cli without Composer

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

Latest Stable Version Total Downloads License

About Pollora CLI

The Pollora CLI is a command-line tool for creating and managing Pollora projects. It provides interactive scaffolding with optional DDEV integration, and acts as an intelligent proxy to framework commands when used inside a project.

Installation

Install the CLI globally via Composer:

Make sure the Composer global vendor/bin directory is in your system's PATH:

Add the returned path to your shell profile if it's not already configured:

Bash~/.bashrc
Zsh~/.zshrc
Fish~/.config/fish/config.fish
Windows (PowerShell)

Note: On some systems, the Composer global directory may be ~/.composer/vendor/bin instead of ~/.config/composer/vendor/bin. Use the composer global config bin-dir --absolute command to check.

After updating your profile, reload your shell (source ~/.zshrc, source ~/.bashrc, etc.) or open a new terminal.

Creating a new project

Standard install

The command will:

  1. Run composer create-project pollora/pollora
  2. Execute php artisan pollora:install for WordPress setup
  3. Optionally initialize a Git repository

With DDEV (recommended)

When the --ddev flag is passed (or selected interactively), the CLI will:

  1. Configure DDEV (WordPress, PHP 8.4, MariaDB 10.11)
  2. Start the DDEV environment
  3. Install the project via ddev composer create-project
  4. Run pollora:install inside the container
  5. Publish the ./pollora binary and ddev pollora command

Your site will be available at https://my-site.ddev.site.

Options

Option Description
--ddev Set up the project with DDEV
--force, -f Force install even if the directory already exists
--git Initialize a Git repository
--branch=NAME Branch name for the new repository (default: main)

Using Pollora commands

Inside a Pollora project

When you run pollora inside a directory that contains both artisan and vendor/pollora/framework, the CLI acts as a proxy and delegates commands to php artisan pollora:{command}:

With DDEV

If you set up your project with --ddev, a custom ddev pollora command is available:

With the local ./pollora binary

The framework provides a dedicated ./pollora binary (published via vendor:publish --tag=pollora-binary) that shows only Pollora-related commands with short names:

The original php artisan pollora:* signatures continue to work as aliases.

Updating

The CLI checks for updates automatically (once every 24 hours) and displays a notification when a new version is available:

To update manually:

This runs composer global update pollora/cli under the hood. You can also use the alias pollora self:update.

Other commands

Command Description
pollora version Display the CLI version
pollora self-update Update the CLI to the latest version (alias: self:update)

Requirements

Testing

License

Pollora CLI is open-sourced software licensed under the GPL-2.0-or-later.


All versions of cli with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
guzzlehttp/guzzle Version ^7.0
laravel/prompts Version ^0.3
symfony/console Version ^7.0
symfony/process Version ^7.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 pollora/cli contains the following files

Loading the files please wait ...