Download the PHP package litephp/app without Composer

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

**A lightweight, MVC-based PHP framework built for simplicity and speed.** [![PHP](https://img.shields.io/badge/PHP-8.1%2B-777BB4?style=flat-square&logo=php&logoColor=white)](https://php.net) [![Composer](https://img.shields.io/badge/Composer-required-885630?style=flat-square&logo=composer&logoColor=white)](https://getcomposer.org) [![Vite](https://img.shields.io/badge/Vite-supported-646CFF?style=flat-square&logo=vite&logoColor=white)](https://vitejs.dev) [![License](https://img.shields.io/badge/License-MIT-22c55e?style=flat-square)](#license)

Requirements

Requirement Version
PHP 8.1 or higher
Composer Latest
Node.js 18+ (for Vite)
Web Server Apache, Nginx, or PHP built-in
Database MySQL / MariaDB (optional)

Quick Start

1. Create a new project

2. Set up environment

3. Install frontend dependencies & start Vite

4. Start the PHP development server

Open http://localhost:3000 in your browser.


Vite Setup

LitePHP ships with first-class Vite support via the @vite() directive.

Install dependencies

Available commands

Usage in Blade views

Asset structure

Note: Run npm run build before deploying to production.


Directory Structure


Configuration

All configuration is managed through .env:

Config files live in config/ and are accessible via:


Routing

Define routes in app/Routes/web.php:


Controllers


Views & Layouts

Layoutapp/views/layout/app.php:

Viewapp/views/home.php:


Middleware

Middleware is auto-discovered from app/Middleware/ via the #[RegisterMiddleware] attribute.

Built-in middleware (auto-registered)

Middleware Scope Description
SecurityHeadersMiddleware Global XSS, clickjacking, MIME-sniffing protection
VerifyCsrfToken Web group CSRF token validation on all forms
ThrottleMiddleware Per-route Rate limiting via throttle:attempts,minutes
CorsMiddleware Manual Cross-origin resource sharing

CSRF in forms


Authentication

LitePHP includes session-based and JWT authentication out of the box.

Configure in config/auth.php or via .env:


CLI — lite

The lite CLI provides development utilities:


Error Pages

Custom error pages are located in app/views/errors/:

File Status
403.php Forbidden
404.php Not Found
500.php Server Error

Deployment Checklist


License

LitePHP is open-sourced software licensed under the MIT License.



All versions of app with dependencies

PHP Build Version
Package Version
Requires litephp/core Version ^1.0.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 litephp/app contains the following files

Loading the files please wait ...