Download the PHP package luany/cli without Composer

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

luany/cli

Official CLI for the Luany Framework — global developer tool with intelligent project detection.

Installation

Global (recommended)

Ensure Composer's global bin directory is in your PATH:

macOS / Linux:

Windows:

Then use from any Luany project:

Project Detection

The CLI automatically detects whether you are inside a Luany project by reading composer.json and verifying that luany/framework or luany/core is declared as a dependency — no vendor/ directory required.

Context Behaviour
Outside any project CLI runs normally, no warnings
Luany project — dependencies installed Full CLI with framework autoload
Luany project — composer install not run Warning shown, scaffolding commands blocked
Project command run outside project Clear error message, no fatal errors

Usage

Commands

Global — run anywhere

Command Description
new <project-name> Create a new Luany project
doctor Check the Luany environment and project health
about Display information about the current project
list List all available commands

Project — require a valid Luany project

Command Description
serve Start the built-in PHP development server
dev Start the Luany Dev Engine (LDE) with live reload
make:controller <Name> Scaffold a new controller
make:model <Name> Scaffold a new model
make:migration <name> Generate a timestamped migration file
make:middleware <Name> Scaffold a new middleware
make:provider <Name> Scaffold a new service provider
make:view <name> [page\|component\|layout] Create a new LTE view
make:request <Name> Scaffold a form request validation class
make:test <Name> Scaffold a PHPUnit test class
make:feature <Name> Scaffold a complete feature (model, controller, migration, views, routes)
migrate Run all pending migrations
migrate:rollback Rollback the last migration batch
migrate:status Show the status of all migrations
migrate:fresh Drop all tables and re-run all migrations
route:list Display all registered routes in a table
key:generate Generate and set APP_KEY in .env
cache:clear Clear compiled view cache

luany new

Creates a new Luany project in a my-app/ directory. Equivalent to composer create-project luany/luany my-app but with a guided experience.

luany doctor

Outside a project — checks the global environment:

Inside a project — additionally checks project health:

luany dev

Starts the Luany Dev Engine (LDE) — the integrated development server with live reload.

Requirements:

What it does:

Reload strategy:

Ignored paths:

Architecture:

How LDE works

The Luany Dev Engine (LDE) is composed of two processes:

  1. PHP Server

    • Serves the application on http://localhost:8000
    • Injects the live-reload client into HTML responses via DevMiddleware
  2. Node.js Watcher
    • Watches filesystem changes using chokidar
    • Runs a WebSocket server (default: 35729)
    • Broadcasts reload events to connected browsers

Flow: file change → watcher detects → debounce (40ms) → broadcast via WebSocket → browser reloads

Browser client:

Note: luany serve continues to work as a plain PHP server without live reload. Use luany dev for active development.

Subdirectory support

make:controller, make:middleware, make:request and make:test support subdirectory notation:

make:view examples

luany make:request

Generates a form request validation class with the full Validator::make() API.

Creates app/Http/Requests/StoreUserRequest.php:

The generated class exposes passes(), fails(), validated() and errors().

You can use it directly in a controller:

Or use the validate() helper (recommended — no boilerplate):

luany make:test

Generates a PHPUnit test class with setUp, tearDown and a placeholder test method.

luany route:list

Displays all registered routes in a colour-coded table.

Colours: GET = green, POST = yellow, PUT/PATCH = blue, DELETE = red.

luany make:feature

Scaffolds a complete feature interactively or via inline fields:

Generates in one command: model with $fillable and $casts, controller with full CRUD using validate() and abort(), migration with all columns, four LTE views with design tokens, and a Route::resource entry in routes/http.php.

Field type Migration Form input Cast Behavior
string VARCHAR(255) text required, placeholder="Enter {Label}"
text TEXT textarea required, placeholder="Enter {Label}"
integer INT number int required, placeholder="Enter {Label}"
boolean TINYINT(1) checkbox bool no required/placeholder
email VARCHAR(150) email required, placeholder="Enter {Label}"
date DATE date required, placeholder="Enter {Label}"
decimal DECIMAL(10,2) number step="0.01" float required, placeholder="Enter {Label}"

Requirements

Testing

Notes on recent improvements

Phase 6 (next/v1):

Previous (v0.2.x):

Common Issues

Command not found (luany)

Project not detected

Migrations not running

Live reload not working

License

MIT — see LICENSE for details.


All versions of cli with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
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 luany/cli contains the following files

Loading the files please wait ...