PHPackages                             jq/cray - 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. [Admin Panels](/categories/admin)
4. /
5. jq/cray

ActiveLibrary[Admin Panels](/categories/admin)

jq/cray
=======

A disposable Laravel package to help you generate nearly complete CRUD pages like crazy!

v3.1.1(5y ago)24197616MITPHPPHP ^7.2CI failing

Since Dec 27Pushed 2y ago10 watchersCompare

[ Source](https://github.com/JunaidQadirB/cray)[ Packagist](https://packagist.org/packages/jq/cray)[ Docs](https://github.com/junaidqadirb/cray)[ RSS](/packages/jq-cray/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (3)Versions (54)Used By (0)

Cray For Laravel
================

[](#cray-for-laravel)

[![Latest Stable Version](https://camo.githubusercontent.com/cb04e08563d9aaf3ac9b9e9ee7b038933ad34fc098616260739a49d8f6a1496e/687474703a2f2f706f7365722e707567782e6f72672f6a712f637261792f76)](https://packagist.org/packages/jq/cray)[![Latest Unstable Version](https://camo.githubusercontent.com/e0cdd57f2b84ed1fbdb0f2d7d2f60e73e9cac28c0d8e109f3a79d94b10e780b8/687474703a2f2f706f7365722e707567782e6f72672f6a712f637261792f762f756e737461626c65)](https://packagist.org/packages/jq/cray)[![Daily Downloads](https://camo.githubusercontent.com/e592619e98616c52b1ae1f9dd575075471605983f419f51e01456efa46dd6118/687474703a2f2f706f7365722e707567782e6f72672f6a712f637261792f642f6461696c79)](https://packagist.org/packages/jq/cray)[![Total Downloads](https://camo.githubusercontent.com/209ecf8f8d71561238fe5ee790db86b8aa8064abec8ad91b5e13b372e5ba927e/687474703a2f2f706f7365722e707567782e6f72672f6a712f637261792f646f776e6c6f616473)](https://packagist.org/packages/jq/cray)[![Quality Score](https://camo.githubusercontent.com/978ab4e6e703d2dc5b1170c5581ab064d9adbd83ee89b80059c8642f499fcd30/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6a756e6169647161646972622f637261792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/junaidqadirb/cray)[![License](https://camo.githubusercontent.com/31f08fab8c00e293e4ea0fc4a5b25a2ab2d18589f5b5f5e197402cc21f93bfac/687474703a2f2f706f7365722e707567782e6f72672f6a712f637261792f6c6963656e7365)](https://packagist.org/packages/jq/cray)[![PHP Version Require](https://camo.githubusercontent.com/fab08e957e5d02ec9790959538b24c1709998f415bb3505ec3df17e55659815f/687474703a2f2f706f7365722e707567782e6f72672f6a712f637261792f726571756972652f706870)](https://packagist.org/packages/jq/cray)

What is Cray?
-------------

[](#what-is-cray)

Cray is a `disposable` Laravel package to help you generate nearly complete CRUD pages like crazy. Literally. It's also a bit opinionated.

If you build straight-forward CRUD pages more often manually writing all the same logic becomes a chore. Cray will not only save you a save but also give you a better way to organize your code.

So what do you mean by disposable?
----------------------------------

[](#so-what-do-you-mean-by-disposable)

You use Cray and forget about it. It isn't coupled with your installation of Laravel and it is preferred to be installed as a `dev` dependency. Cray generates the files and it forgets about them and they are all yours to modify do whatever you want.

What does it actually do?
-------------------------

[](#what-does-it-actually-do)

Suppose you are building a blog, and you want to create a Post model then you have to do a ton of other tedious and to be honest, boring things like creating migrations, model factories, the controller, form validation and adding all the logic and what not.

So what Cray does is when you tell it the model name, it will do all those boring things I listed earlier. When it's done you have the following:

- `Post.php`
- `PostController.php` with all the necessary logic to list, edit, create and delete posts.
- `PostStoreRequest.php` and `PostUpdateRequest.php`
- Timestamped `create_posts_table.php` migration file
- `PostFactory.php`
- `posts` views directory with `index.blade.php`, `create.blade.php`, `edit.blade.php`, `show.blade.php`, `modals/delete.blade.php`as well as a blank `_form.blade.php` for you to add the fields.

Then all you have to do is:

- Add the columns to the migration file
- Add the necessary fields (as defined in the last step) to the `_form.blade.php`
- Add validation rules for the fields you added to the form.

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

[](#installation)

```
composer require jq/cray --dev
```

Or specify specific version, for example to try a beta

```
composer require "jq/cray:3.2.0-beta3" --dev
```

Then publish the stubs

```
php artisan vendor:publish --tag=cray
```

It will generate `stubs` to `resources/vendor/cray/stubs` directory.

Usage
-----

[](#usage)

```
php artisan cray Post
```

Once done, it will show you the details of the files generated.

```
Factory created successfully in /database/factories/PostFactory.php
Created Migration: 2020_03_14_151409_create_posts_table
Model created successfully in /app/Post.php
Controller created successfully in /app/Http/Controllers/PostController.php
View created successfully in /resources/views/posts/index.blade.php
View created successfully in /resources/views/posts/create.blade.php
View created successfully in /resources/views/posts/_form.blade.php
View created successfully in /resources/views/posts/edit.blade.php
View created successfully in /resources/views/posts/show.blade.php
View created successfully in /resources/views/posts/modals/delete.blade.php
Request created successfully in /app/Http/Requests/PostStoreRequest.php
Request created successfully in /app/Http/Requests/PostUpdateRequest.php
```

Now add the necessary fields and run

```
php artisan migrate
```

And that saved you an hour worth of repetitive and boring work which you can spend on more important development challenges.

### Optional Packages

[](#optional-packages)

- [Blade Components](https://github.com/JunaidQadirB/blade-components)

Documentation
-------------

[](#documentation)

You can read the documentation [here](https://junaidqadirb.github.io/cray/).

### Changelog

[](#changelog)

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Laravel](https://github.com/laravel)
- [Junaid Qadir](https://github.com/junaidqadirb)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 98.3% 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 ~45 days

Recently: every ~158 days

Total

41

Last Release

875d ago

Major Versions

1.5.4 → v3.0.02020-03-14

PHP version history (4 changes)v3.0.0PHP ^7.2

v3.0.1PHP ^7.1

v3.2.0-beta4PHP &gt;=7.2|&gt;=8.0

v3.2.0-beta6PHP &gt;=7.2

### Community

Maintainers

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

---

Top Contributors

[![JunaidQadirB](https://avatars.githubusercontent.com/u/642353?v=4)](https://github.com/JunaidQadirB "JunaidQadirB (119 commits)")[![jaamiparvez](https://avatars.githubusercontent.com/u/57383144?v=4)](https://github.com/jaamiparvez "jaamiparvez (1 commits)")[![WBDC](https://avatars.githubusercontent.com/u/50083290?v=4)](https://github.com/WBDC "WBDC (1 commits)")

---

Tags

crudgeneratorlaravellaravel-packagephpscaffoldercode generatorscaffoldgeneratejunaidqadirbcraygenerate code

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jq-cray/health.svg)

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

###  Alternatives

[crestapps/laravel-code-generator

An intelligent code generator for Laravel framework that will save you time! This awesome tool will help you generate resources like views, controllers, routes, migrations, languages and/or form-requests! It is extremely flexible and customizable to cover many on the use cases. It is shipped with cross-browsers compatible template, along with a client-side validation to modernize your application.

76591.7k1](/packages/crestapps-laravel-code-generator)[friendsofcake/crud

CakePHP Application development on steroids - rapid prototyping / scaffolding &amp; production ready code - XML / JSON APIs and more

3751.4M25](/packages/friendsofcake-crud)[digitaldream/laracrud

Do you have a well structured database and you want to make a Laravel Application on top of it. By using this tools you can generate Models which have necessary methods and property, Request class with rules, generate route from controllers method and its parameter and full features form with validation error message and more with a single line of command

33221.3k](/packages/digitaldream-laracrud)[friendsofcake/crud-view

View layer for CRUD

52433.8k2](/packages/friendsofcake-crud-view)[dog-ears/crud-d-scaffold

Extend Laravel 7's generators scaffold.

183.1k](/packages/dog-ears-crud-d-scaffold)

PHPackages © 2026

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