PHPackages                             fsac/laravel-react-make - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. fsac/laravel-react-make

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

fsac/laravel-react-make
=======================

Artisan command to generate React components including TypeScript support

v3.0.0(3y ago)01.4kMITPHPPHP ^8.2|^8.1|^8.0

Since Mar 2Pushed 2y agoCompare

[ Source](https://github.com/FullStackAppCo/laravel-react-make)[ Packagist](https://packagist.org/packages/fsac/laravel-react-make)[ RSS](/packages/fsac-laravel-react-make/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (6)Versions (16)Used By (0)

Laravel React Make
==================

[](#laravel-react-make)

Quickly scaffold React components in your Laravel app using Artisan. Includes customisable template stubs and TypeScript support.

```
php artisan make:react MyComponent
```

Support
-------

[](#support)

LaravelLaravel React Make104 (beta)10, 939, 828, 7, 61Installation
------------

[](#installation)

In your Laravel directory install via Composer.

```
composer require --dev fsac/laravel-react-make
```

Basic Usage
-----------

[](#basic-usage)

Generate a React function component under `resources/js/components`.

```
php artisan make:react PrimaryButton
# -> resources/js/components/PrimaryButton.jsx
```

You may also include subdirectories:

```
php artisan make:react buttons/Primary
# -> resources/js/components/buttons/Primary.jsx
```

Providing an absolute path will omit the `components` prefix, using `resources/js` as the root:

```
php artisan make:react /pages/Settings
# -> resources/js/pages/Settings.jsx
```

Advanced Usage
--------------

[](#advanced-usage)

### TypeScript

[](#typescript)

The command also supports generating TypeScript components. The short version `-t` may also be used:

```
php artisan make:react --typescript PrimaryButton
# -> resources/js/components/PrimaryButton.tsx
```

### File Extension

[](#file-extension)

You may provide a custom file extension. The short version `-x` may also be used:

```
php artisan make:react --extension js PrimaryButton
# -> resources/js/components/PrimaryButton.js
```

### Configuration

[](#configuration)

If you'd like to customise the default configuration you must publish the config file:

```
php artisan vendor:publish --tag react-config
```

### Base Path

[](#base-path)

To use a base path other than `resources/js` you may provide a value to the `base`configuration option:

```
'base' => resource_path('ts'),
```

### Path Prefix

[](#path-prefix)

When specifying relative paths the command will use the `components` prefix. You may change this prefix using the `prefix` configuration option:

```
'prefix' => 'Components',
```

### Default Options

[](#default-options)

Providing the same options each time you use the command, for example when working with a TypeScript codebase, can become tiresome. You may provide your own default option values using the `defaults` config property:

```
'defaults' => ['typescript' => true],
```

### Customising Stubs

[](#customising-stubs)

If you'd like to customise the default templates used to generate components you may publish them to the `stubs` directory:

```
php artisan vendor:publish --tag react-stub
```

License
-------

[](#license)

This code is open sourced under the [MIT License](LICENSE.txt).

###  Health Score

34

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~104 days

Recently: every ~155 days

Total

15

Last Release

896d ago

Major Versions

v0.1.1 → v1.0.02020-10-01

v1.1.0 → v2.0.02022-04-12

v2.1.0 → 3.x-dev2023-02-18

v3.0.0 → v4.0.0-beta.12024-02-24

PHP version history (6 changes)v0.1.0-alphaPHP ^7.2

v0.1.0-betaPHP ^7.1.3

1.x-devPHP ^7.2|^8.0

v2.0.0PHP ^7.3|^8.0

3.x-devPHP ^8.2|^8.1|^8.0

v4.0.0-beta.1PHP ^8.1|^8.2|^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8898601?v=4)[fsac](/maintainers/fsac)[@fsac](https://github.com/fsac)

---

Top Contributors

[![jobyh](https://avatars.githubusercontent.com/u/779072?v=4)](https://github.com/jobyh "jobyh (62 commits)")

---

Tags

artisanlaravelreactlaravelartisantypescriptreact

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/fsac-laravel-react-make/health.svg)

```
[![Health](https://phpackages.com/badges/fsac-laravel-react-make/health.svg)](https://phpackages.com/packages/fsac-laravel-react-make)
```

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M282](/packages/laravel-ai)[illuminate/queue

The Illuminate Queue package.

20433.0M1.8k](/packages/illuminate-queue)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React/Svelte) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

5031.3k](/packages/erag-laravel-lang-sync-inertia)[moonshine/moonshine

Laravel administration panel

1.3k268.2k87](/packages/moonshine-moonshine)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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