PHPackages                             litephp/app - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. litephp/app

ActiveProject[Framework](/categories/framework)

litephp/app
===========

A starter application built on LitePHP

v1.1.3(1w ago)015—0%MITPHPCI passing

Since Jun 15Pushed 1w agoCompare

[ Source](https://github.com/Lazycoder229/litephp-app)[ Packagist](https://packagist.org/packages/litephp/app)[ RSS](/packages/litephp-app/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (6)Dependencies (4)Versions (10)Used By (0)

**A lightweight, MVC-based PHP framework built for simplicity and speed.**

[![PHP](https://camo.githubusercontent.com/f300b22ba00aa3a0ef67aaab5765489aef8759bc5cdb9af55c0526a00fd80962/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312532422d3737374242343f7374796c653d666c61742d737175617265266c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://php.net)[![Composer](https://camo.githubusercontent.com/5e35c0417fe343afed7c165814fcfb49759cb4b5b733bc25ab6957db1a27513f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f6d706f7365722d72657175697265642d3838353633303f7374796c653d666c61742d737175617265266c6f676f3d636f6d706f736572266c6f676f436f6c6f723d7768697465)](https://getcomposer.org)[![Vite](https://camo.githubusercontent.com/e88c8fdc71e9584414f9d552014a5ca9206eb821215919c7ca2c05d761a3fca7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f566974652d737570706f727465642d3634364346463f7374796c653d666c61742d737175617265266c6f676f3d76697465266c6f676f436f6c6f723d7768697465)](https://vitejs.dev)[![License](https://camo.githubusercontent.com/2064788fb84458d8ff362f54c72f9e243482923edc86c7959056107df445aca7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d3232633535653f7374796c653d666c61742d737175617265)](#license)

---

Requirements
------------

[](#requirements)

RequirementVersionPHP8.1 or higherComposerLatestNode.js18+ *(for Vite)*Web ServerApache, Nginx, or PHP built-inDatabaseMySQL / MariaDB *(optional)*---

Quick Start
-----------

[](#quick-start)

### 1. Create a new project

[](#1-create-a-new-project)

```
composer create-project litephp/app my-app
cd my-app
```

### 2. Set up environment

[](#2-set-up-environment)

```
php lite env:init
php lite key:generate
php lite jwt:secret
```

### 3. Install frontend dependencies &amp; start Vite

[](#3-install-frontend-dependencies--start-vite)

```
npm install
npm run dev
```

### 4. Start the PHP development server

[](#4-start-the-php-development-server)

```
php -S localhost:3000
or
npm run dev        # to run both the vite server and the lite app
```

> Open  in your browser.

---

Vite Setup
----------

[](#vite-setup)

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

### Install dependencies

[](#install-dependencies)

```
npm install
```

### Available commands

[](#available-commands)

```
npm run dev      # Start Vite dev server with HMR
npm run build    # Build assets for production
```

### Usage in Blade views

[](#usage-in-blade-views)

```
{{-- In your layout file --}}
