PHPackages                             bakgul/laravel-resource-creator - 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. bakgul/laravel-resource-creator

ActiveLibrary

bakgul/laravel-resource-creator
===============================

This package aims to create the view, style, and javascript files. It can create all boilerplates and connect files to each other to reduce repetitive tasks. Blade, Vuejs (view, vue-router, vuex, pinia), and Sass are covered in this first release.

v4.0.1(3y ago)11033MITPHPPHP ^8.1

Since May 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/bulentAkgul/laravel-resource-creator)[ Packagist](https://packagist.org/packages/bakgul/laravel-resource-creator)[ RSS](/packages/bakgul-laravel-resource-creator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (21)Used By (3)

Laravel Resource Creator
========================

[](#laravel-resource-creator)

This package aims to create the view, style, and javascript files. It can create all boilerplates and connect files to each other to reduce repetitive tasks. Blade, Vuejs (view, vue-router, vuex, pinia), and Sass are covered in this first release.

#### DISCLAIMER

[](#disclaimer)

It should be production-ready but hasn't been tested enough. You should use it carefully since this package will manipulate your files and folders. Always use a version-control, and make sure you have [**File History**](https://github.com/bulentAkgul/file-history) to be able to roll back the changes.

### v3 Update guide

[](#v3-update-guide)

- Go to `vendor/bakgul/kernel/config/apps.php` file and see the changes. We have a new key named `routes` under each app. Bring that new structure to your packagify.php file in your config folder.
- Add `'bundler' => 'vite' or 'mix'` to the main array under 'Main from Kernel' section in your packagify.php file in your config folder.

Installation
------------

[](#installation)

If you installed [**Packagified Laravel**](https://github.com/bulentAkgul/packagified-laravel), you should have this package already. So skip installation.

```
composer require bakgul/laravel-resource-creator --dev

```

**NOTE**: This package will not install [**Laravel File Creator**](https://github.com/bulentAkgul/laravel-file-creator), but you will need it to create the Balde component and Livewire classes.

Next, you need to publish the settings by executing the following command. By doing so, you will have a new file named *packagify.php* on the config folder. The resource types are in the "**resources**" array. The main settings of files in the **files** array under the keys of "*view, css, js*." Quite deep explanations are provided in the comment blocks of those arrays.

```
sail artisan packagify:publish-config

```

After publishing stubs, you will be able to update the stub files as you need. It's safe to delete the unedited files.

```
sail artisan packagify:publish-stub

```

### Command Signature

[](#command-signature)

```
create:resource {name} {type} {package?} {app?} {--p|parent=} {--c|class} {--t|taskless} {--f|force}

```

### Arguments

[](#arguments)

- **name**: subs/name:task

    - **subs**: You can specify subfolders like **sub1/sub2/sub3** when you need a deeper file structure.
    - **name**: The file name without any suffix.
    - **task**: This is optional.

        - *exist*: You may set one or more tasks with a dot-separated fashion like "**users:index**" or "**users:index.store.update**." The task should be in the file type and its pairs' and the global task lists (see the tasks array on *config/packagify.php*). Otherwise, it will be ignored.
        - *missing*: If the underlying file type has tasks, a separate file will be generated for each of them. Otherwise, a single file will be generated.
- **type**: name:variation:role

    - **name**: It should be one of 'view, css, js.' It will be determined which file type will be generated based on the app type. For example, if you create files for the admin app, and the admin app's type is 'vue', then the view files will be Vue, and js files will be 'store' and 'route' files. The settings of those types are in the 'resources' array on 'packagify.php'.
    - **variation**: It's required and should be one of the variations of the specified file type.
    - **role**: It's optional.

        - *exist*: It should be one of the items in the roles array.
        - *missing*: It will be the default one which is no-role.
- **package**: It won't be used when working on a Standalone Laravel or Standalone Package. If you don't specify a valid package name, the file will be generated in the resources folder.
- **app**: To create files for a specific app, you must specify the app name. The settings are in the **apps** array on **the packagify.php** file.

### Options

[](#options)

- **parent**: When you create a section, you need to tell what is the page name that holds the creating section.
- **class**: When you create a Blade component, you need to add "**-c**" or "**--class**" to the command to create a class of the component.
- **taskless**: The sections will be generated as a separate file for each task unless the comment has tasks. But sometimes, you may want to create a single file without any task. In such cases, you need to append '-t' or '--taskless' to your command. This will cancel the default behavior of the task explosion.
- **force**: Normally, a file will not be regenerated if it exists. If this option is passed, a new file will be created anyway.

Packagified Laravel
-------------------

[](#packagified-laravel)

The main package that includes this one can be found here: [**Packagified Laravel**](https://github.com/bulentAkgul/packagified-laravel)

The Packages That Will Be Installed By This Package
---------------------------------------------------

[](#the-packages-that-will-be-installed-by-this-package)

- [**Command Evaluator**](https://github.com/bulentAkgul/command-evaluator)
- [**File Content**](https://github.com/bulentAkgul/file-content)
- [**File History**](https://github.com/bulentAkgul/file-history)
- [**Kernel**](https://github.com/bulentAkgul/kernel)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity66

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 ~15 days

Recently: every ~1 days

Total

20

Last Release

1179d ago

Major Versions

v1.1.9 → v2.0.02023-01-02

v2.0.1 → v3.0.02023-01-25

v3.0.5 → v4.0.02023-02-21

PHP version history (2 changes)v1.1.0PHP ^8.0.2

v4.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc3c26b9029d2705ffcd2baebee543db52c24b1fb5cb29c5557436de853d42c1?d=identicon)[bulentAkgul](/maintainers/bulentAkgul)

---

Top Contributors

[![bulentAkgul](https://avatars.githubusercontent.com/u/12589023?v=4)](https://github.com/bulentAkgul "bulentAkgul (182 commits)")

### Embed Badge

![Health badge](/badges/bakgul-laravel-resource-creator/health.svg)

```
[![Health](https://phpackages.com/badges/bakgul-laravel-resource-creator/health.svg)](https://phpackages.com/packages/bakgul-laravel-resource-creator)
```

PHPackages © 2026

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