PHPackages                             hussainabuhajjaj/codebot - 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. hussainabuhajjaj/codebot

ActiveLibrary[Framework](/categories/framework)

hussainabuhajjaj/codebot
========================

AI-powered Laravel component generator

v1.1.0(1y ago)03MITPHPPHP ^8.1CI failing

Since Jan 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hussainabuhajjaj/Codebot-laravel)[ Packagist](https://packagist.org/packages/hussainabuhajjaj/codebot)[ RSS](/packages/hussainabuhajjaj-codebot/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

```
# Codebot Laravel Package

Codebot is a Laravel package that uses **DeepSeek AI** to generate **migrations**, **models**, and **views** with designs using popular frameworks like **Bootstrap** and **Tailwind CSS**. It simplifies the process of scaffolding Laravel applications by automating repetitive tasks.

## Features

- Generate **migrations** with fields and relationships.
- Generate **models** with fillable attributes and relationships.
- Generate **views** with **Bootstrap** or **Tailwind CSS** designs.
- Interactive command-line interface for easy usage.
- Customizable templates for migrations, models, and views.

---

## Installation

1. Install the package via Composer:
   ```bash
   composer require hussainabuhajjaj/codebot-laravel
```

2. Publish the configuration file (optional):

    ```
    php artisan vendor:publish --provider="Hussainabuhajjaj\Codebot\CodebotServiceProvider" --tag="config"
    ```
3. Set your DeepSeek API key in the `.env` file:

    ```
    DEEPSEEK_API_KEY=your-api-key-here
    ```

---

Usage
-----

[](#usage)

Run the following command to generate code interactively:

```
php artisan codebot:generate
```

### Example Workflow

[](#example-workflow)

1. **Generate a Migration:**

    - Enter the table name (e.g., `users`).
    - Add fields (e.g., `name:string`, `email:string`, `password:string`).
    - Add relationships (e.g., `hasMany:posts`).
2. **Generate a Model:**

    - The model will be created with fillable attributes and relationships.
3. **Generate Views:**

    - Choose a design framework (e.g., **Bootstrap** or **Tailwind CSS**).
    - Views will be generated for listing, creating, and editing records.

---

Examples
--------

[](#examples)

### Example 1: Generate a `users` Table

[](#example-1-generate-a-users-table)

1. Run the command:

    ```
    php artisan codebot:generate
    ```
2. Follow the prompts:

    - Table name: `users`
    - Fields:
        - `name:string`
        - `email:string`
        - `password:string`
    - Relationships: `hasMany:posts`
    - Design framework: `bootstrap`
3. **Results:**

    - A migration file is created: ```
        Schema::create('users', function (Blueprint $table) {
            $table->id();
            $table->string('name');
            $table->string('email')->unique();
            $table->string('password');
            $table->timestamps();
        });
        ```
    - A model file is created: ```
        class User extends Model
        {
            protected $fillable = ['name', 'email', 'password'];

            public function posts()
            {
                return $this->hasMany(Post::class);
            }
        }
        ```
    - Views are created with Bootstrap styling:
        - `resources/views/users/index.blade.php`
        - `resources/views/users/create.blade.php`
        - `resources/views/users/edit.blade.php`

---

### Example 2: Generate a `posts` Table

[](#example-2-generate-a-posts-table)

1. Run the command:

    ```
    php artisan codebot:generate
    ```
2. Follow the prompts:

    - Table name: `posts`
    - Fields:
        - `title:string`
        - `content:text`
        - `user_id:integer`
    - Relationships: `belongsTo:user`
    - Design framework: `tailwind`
3. **Results:**

    - A migration file is created: ```
        Schema::create('posts', function (Blueprint $table) {
            $table->id();
            $table->string('title');
            $table->text('content');
            $table->foreignId('user_id')->constrained();
            $table->timestamps();
        });
        ```
    - A model file is created: ```
        class Post extends Model
        {
            protected $fillable = ['title', 'content', 'user_id'];

            public function user()
            {
                return $this->belongsTo(User::class);
            }
        }
        ```
    - Views are created with Tailwind CSS styling:
        - `resources/views/posts/index.blade.php`
        - `resources/views/posts/create.blade.php`
        - `resources/views/posts/edit.blade.php`

---

Results
-------

[](#results)

After running the `codebot:generate` command, you’ll have the following files:

1. **Migrations:**

    - Located in `database/migrations`.
    - Ready to be applied using `php artisan migrate`.
2. **Models:**

    - Located in `app/Models`.
    - Includes fillable attributes and relationships.
3. **Views:**

    - Located in `resources/views`.
    - Styled with **Bootstrap** or **Tailwind CSS**.
4. **Routes:**

    - Add routes in `routes/web.php` to access the generated views: ```
        Route::resource('users', UserController::class);
        Route::resource('posts', PostController::class);
        ```

---

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

[](#contributing)

Contributions are welcome! Here’s how you can contribute:

1. Fork the repository.
2. Create a new branch: ```
    git checkout -b feature/your-feature-name
    ```
3. Commit your changes: ```
    git commit -m "Add your feature"
    ```
4. Push to the branch: ```
    git push origin feature/your-feature-name
    ```
5. Open a pull request.

---

License
-------

[](#license)

This package is open-source software licensed under the [MIT License](https://opensource.org/licenses/MIT).

---

Support
-------

[](#support)

If you encounter any issues or have questions, please open an issue on [GitHub](https://github.com/hussainabuhajjaj/Codebot-laravel/issues).

---

Enjoy using **Codebot**! 🚀

```

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance42

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

2

Last Release

478d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/441a5480db7f212a63b1828b8413b6b798fa5f1d0afcb5226652536089ec3e34?d=identicon)[hussainabuhajjaj](/maintainers/hussainabuhajjaj)

---

Tags

laravelaimigrationstailwindmodelsbootstrapviewscodebot

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hussainabuhajjaj-codebot/health.svg)

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

###  Alternatives

[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.5k10.6M274](/packages/laravel-boost)[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[krayin/laravel-crm

Krayin CRM

22.0k32.8k1](/packages/krayin-laravel-crm)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)[malhal/laravel-geographical

Easily add longitude and latitude columns to your records and use inherited functionality for calculating distances

283375.6k](/packages/malhal-laravel-geographical)[php-mcp/laravel

Laravel SDK for building Model Context Protocol (MCP) servers - Seamlessly integrate MCP tools, resources, and prompts into Laravel applications

47283.1k1](/packages/php-mcp-laravel)

PHPackages © 2026

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