PHPackages                             laraorvite/framework - 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. laraorvite/framework

ActiveLibrary

laraorvite/framework
====================

Custom frontend and API starter for Laravel

v1.1.0(yesterday)312↑900%4MITPHPCI passing

Since Apr 6Pushed todayCompare

[ Source](https://github.com/LaraOrVite/framework)[ Packagist](https://packagist.org/packages/laraorvite/framework)[ RSS](/packages/laraorvite-framework/feed)WikiDiscussions 1.x Synced today

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

LaraOrVite 🚀
============

[](#laraorvite-)

[![Tests](https://github.com/LaraOrVite/framework/actions/workflows/tests.yml/badge.svg)](https://github.com/LaraOrVite/framework/actions)[![Latest Version on Packagist](https://camo.githubusercontent.com/f70ee6cec603dc599af1e4062772cf627e1ed9187d299e256c68aa6a1befd5ba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6172616f72766974652f6672616d65776f726b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laraorvite/framework)[![Total Downloads](https://camo.githubusercontent.com/b733c24e99d325e370fbbb744bf04eadaf06b660d5134bac0c7d117b94df0a60/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6172616f72766974652f6672616d65776f726b3f763d31267374796c653d666c61742d73717561726526636f6c6f723d626c7565)](https://packagist.org/packages/laraorvite/framework)

**LaraOrVite** is a lightweight Laravel package designed to scaffold a modern frontend environment with **Vite** and a separate **API** architecture in seconds. It bridges the gap between Laravel's backend power and modern frontend frameworks like React, Vue, and Svelte.

---

### 💻 Compatibility &amp; Stack

[](#-compatibility--stack)

[![PHP](https://camo.githubusercontent.com/4fc9b2b2def3086c8c17ad0da3a54ef454a9448d6ed816da7837f1bfb5212a73/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e342532422d3737374242343f7374796c653d666c61742d737175617265266c6f676f3d706870)](https://camo.githubusercontent.com/4fc9b2b2def3086c8c17ad0da3a54ef454a9448d6ed816da7837f1bfb5212a73/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e342532422d3737374242343f7374796c653d666c61742d737175617265266c6f676f3d706870)[![Laravel](https://camo.githubusercontent.com/5660c9b8594f90a45e0edaeb6f51d7165dfa309b5b468fff35b1fcede14e42c4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31302532463131253246313225324631332d4646324432303f7374796c653d666c61742d737175617265266c6f676f3d6c61726176656c)](https://camo.githubusercontent.com/5660c9b8594f90a45e0edaeb6f51d7165dfa309b5b468fff35b1fcede14e42c4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31302532463131253246313225324631332d4646324432303f7374796c653d666c61742d737175617265266c6f676f3d6c61726176656c)[![Vite](https://camo.githubusercontent.com/ca5c9a369b0a49ef73bed58da913b75693f84c884dcb04eaafd3bfb17c1d7b7b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f566974652d392e302532422d3634364346463f7374796c653d666c61742d737175617265266c6f676f3d76697465)](https://camo.githubusercontent.com/ca5c9a369b0a49ef73bed58da913b75693f84c884dcb04eaafd3bfb17c1d7b7b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f566974652d392e302532422d3634364346463f7374796c653d666c61742d737175617265266c6f676f3d76697465)

**Supported Frontend Frameworks:**[![React](https://camo.githubusercontent.com/883d192f1d6e31cea633a51019d5cf616b286fd5c08f41488a2805a0e0a5f0ac/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f52656163742d3230323332413f7374796c653d666c61742d737175617265266c6f676f3d7265616374)](https://camo.githubusercontent.com/883d192f1d6e31cea633a51019d5cf616b286fd5c08f41488a2805a0e0a5f0ac/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f52656163742d3230323332413f7374796c653d666c61742d737175617265266c6f676f3d7265616374)[![Vue.js](https://camo.githubusercontent.com/ab8f53c388c4c5679291e6b695ee25f36a7b2d17b9ef35bb1a59fe1a3fc3d743/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5675652e6a732d3335343935453f7374796c653d666c61742d737175617265266c6f676f3d767565646f746a73)](https://camo.githubusercontent.com/ab8f53c388c4c5679291e6b695ee25f36a7b2d17b9ef35bb1a59fe1a3fc3d743/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5675652e6a732d3335343935453f7374796c653d666c61742d737175617265266c6f676f3d767565646f746a73)[![Svelte](https://camo.githubusercontent.com/2eff56f549df2e7fae9af51589fedbc2f679f04eb678441f86462db302899175/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5376656c74652d4646334530303f7374796c653d666c61742d737175617265266c6f676f3d7376656c7465)](https://camo.githubusercontent.com/2eff56f549df2e7fae9af51589fedbc2f679f04eb678441f86462db302899175/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5376656c74652d4646334530303f7374796c653d666c61742d737175617265266c6f676f3d7376656c7465)[![TypeScript](https://camo.githubusercontent.com/04079270306a5fa20be38bd404ef26a7ecca2d1cdb65c67efcb5bc8cd3d87b36/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f547970655363726970742d3030374143433f7374796c653d666c61742d737175617265266c6f676f3d74797065736372697074)](https://camo.githubusercontent.com/04079270306a5fa20be38bd404ef26a7ecca2d1cdb65c67efcb5bc8cd3d87b36/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f547970655363726970742d3030374143433f7374796c653d666c61742d737175617265266c6f676f3d74797065736372697074)[![JavaScript](https://camo.githubusercontent.com/50d879f6a27583497f2472ba90fcdb16d85d9b0205b4996fca097d0a9736f22e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4a6176615363726970742d4637444631453f7374796c653d666c61742d737175617265266c6f676f3d6a617661736372697074)](https://camo.githubusercontent.com/50d879f6a27583497f2472ba90fcdb16d85d9b0205b4996fca097d0a9736f22e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4a6176615363726970742d4637444631453f7374796c653d666c61742d737175617265266c6f676f3d6a617661736372697074)

---

✨ Features
----------

[](#-features)

- 🛠 **One-Command Setup**: Set up your entire frontend and API scaffolding with a single Artisan command.
- 📦 **Framework Flexibility**: Supports React, Vue, Svelte, and Vanilla JS (both JS and TS versions).
- 🛡 **API Ready**: Automatically installs Laravel Sanctum and configures API routes if not already present.
- 📂 **Custom Structure**: Keep your frontend organized in a dedicated directory within `resources/`.
- ✅ **Tested &amp; Secure**: Built with TDD principles and GitHub Actions for continuous integration.

---

🚀 Installation
--------------

[](#-installation)

You can install the package via composer:

```
composer require laraorvite/framework
```

🛠 Usage
-------

[](#-usage)

After installing the package, run the setup command:

```
php artisan frontend:setup
```

### Optional: Custom Directory Name

[](#optional-custom-directory-name)

By default, the frontend is created in `resources/frontend`. You can specify a custom name:

```
php artisan frontend:setup my-app
```

### What happens during setup?

[](#what-happens-during-setup)

1. **API Scaffolding**: If you are on Laravel 11+, it runs `install:api` and sets up Sanctum.
2. **Framework Choice**: You will be prompted to choose your preferred frontend framework (React, Vue, Svelte, etc.).
3. **Vite Initialization**: It runs `npm create vite@latest` inside your resources folder automatically.
4. **Routes Configuration**: It provides a pre-configured `api.php` stub to get you started.

---

🏃‍♂️ Getting Started
--------------------

[](#‍️-getting-started)

Once the setup is complete, follow these steps to start developing:

1. **Navigate to your frontend folder**:

    ```
    cd resources/frontend
    ```
2. **Install dependencies &amp; Start Vite**:

    ```
    npm install
    npm run dev
    ```
3. **Start your Laravel server**:

    ```
    php artisan serve
    ```

---

🧪 Running Tests
---------------

[](#-running-tests)

To run the package tests, use:

```
composer test
```

OR

```
./vendor/bin/phpunit
```

---

🤝 Contributing
--------------

[](#-contributing)

Contributions are welcome! If you find a bug or have a feature request, please open an issue or submit a pull request.

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

---

📄 License
---------

[](#-license)

The MIT License (MIT). Please see [License File](https://www.google.com/search?q=LICENSE) for more information.

---

**Happy Coding with LaraOrVite!** Created by [Niduranga Jayarathna](https://www.google.com/search?q=https://github.com/niduranga-jayarathna)

```

```

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance100

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

12

Last Release

1d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/139a52bbcc50fb98db10ce630131413e08ce12ab0752f0b195a1e1ca7bdca390?d=identicon)[niduranga](/maintainers/niduranga)

---

Top Contributors

[![niduranga](https://avatars.githubusercontent.com/u/183077965?v=4)](https://github.com/niduranga "niduranga (38 commits)")[![udarakalpana](https://avatars.githubusercontent.com/u/44320046?v=4)](https://github.com/udarakalpana "udarakalpana (1 commits)")

### Embed Badge

![Health badge](/badges/laraorvite-framework/health.svg)

```
[![Health](https://phpackages.com/badges/laraorvite-framework/health.svg)](https://phpackages.com/packages/laraorvite-framework)
```

###  Alternatives

[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M106](/packages/laravel-cashier)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[laravel/wayfinder

Generate TypeScript representations of your Laravel actions and routes.

1.7k4.1M69](/packages/laravel-wayfinder)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

71510.9M65](/packages/laravel-mcp)[provydon/docs-generate

Automatic API documentation for your Laravel app — zero annotations, OpenAPI 3.0 JSON &amp; Swagger UI.

103.5k](/packages/provydon-docs-generate)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
