PHPackages                             ventom/flutter-api-package - 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. [API Development](/categories/api)
4. /
5. ventom/flutter-api-package

ActiveLibrary[API Development](/categories/api)

ventom/flutter-api-package
==========================

A package to integrate API for Flutter app.

v1.0.0(1y ago)07MITPHP

Since Aug 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/VentoMichael/flutter-api-package)[ Packagist](https://packagist.org/packages/ventom/flutter-api-package)[ RSS](/packages/ventom-flutter-api-package/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

MakeFlutterCommand Package
==========================

[](#makefluttercommand-package)

Overview
--------

[](#overview)

The **MakeFlutterCommand** package provides a Laravel artisan command to generate essential files and structure for a Flutter component in a Laravel project. This command streamlines the development process by automatically creating the necessary resources, migrations, models, controllers, and routes, following Laravel's best practices.

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

[](#installation)

### 1. Require the Package

[](#1-require-the-package)

To get started, you need to require the package in your Laravel project using Composer:

```
composer require ventom/make-flutter-command

```

### 2. Service Provider (If Not Auto-Discovered)

[](#2-service-provider-if-not-auto-discovered)

If ventom package is not auto-discovered by Laravel, you need to manually register the service provider. Open the `config/app.php` file and add the service provider to the `providers` array:

```
'providers' => [
    // Other Service Providers

    Vendor\Package\FlutterServiceProvider::class,
]

```

### 3. Publish Configuration (Optional)

[](#3-publish-configuration-optional)

If your package includes configuration files that need to be published to the Laravel application's config directory, you can publish them using the following command:

```
php artisan vendor:publish --provider="Vendor\Package\FlutterServiceProvider"

```

Usage
-----

[](#usage)

### Make a Flutter Component

[](#make-a-flutter-component)

You can generate a Flutter component using the following artisan command:

```
    php artisan make:flutter {name} {--seeder}

```

- `{name}`: The name of the component you want to create.
- `--seeder`: (Optional) If this option is provided, a seeder file will also be generated.

### Example

[](#example)

To create a Flutter component named "Product" and include a seeder, use the command:

```
    php artisan make:flutter Product --seeder

```

This command will create the following files and updates:

1. **Resource**: `app/Http/Resources/ProductResource.php`
2. **Migration**: `database/migrations/xxxx_xx_xx_create_products_table.php`
3. **Helper**: `app/Helpers/ProductHelper.php`
4. **Model**: `app/Models/Product.php`
5. **Controller**: `app/Http/Controllers/Api/ProductController.php`
6. **Routes**: Adds RESTful API routes in `routes/api.php`
7. **Seeder**: (If `--seeder` is provided) `database/seeders/ProductSeeder.php`

### Generated Controller Actions

[](#generated-controller-actions)

The package creates a controller with the following actions:

- **json()**: Fetches all instances of the model and returns them as a JSON response.
- **show($id)**: Fetches a specific instance by its ID.
- **store(Request $request)**: Stores a new instance in the database.
- **update(Request $request, $id)**: Updates an existing instance by its ID.
- **destroy($id)**: Deletes an instance by its ID.

### Generated API Routes

[](#generated-api-routes)

The generated routes can be found in `routes/api.php` and include:

```
Route::prefix('products')
    ->controller(App\Http\Controllers\Api\ProductController::class)
    ->group(function () {
        Route::get('/json', 'json');
        Route::get('/{id}', 'show');
        Route::post('/', 'store');
        Route::put('/{id}', 'update');
        Route::delete('/{id}', 'destroy');
    });

```

Changelog
---------

[](#changelog)

All notable changes to this project will be documented in this section.

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

[](#contributing)

If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are welcome.

License
-------

[](#license)

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

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

Unknown

Total

1

Last Release

629d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5847266c0cdc2f047ffe4fc09ba9bb6b99711560ff38070c488dd98d16085d1a?d=identicon)[Vento Michael](/maintainers/Vento%20Michael)

### Embed Badge

![Health badge](/badges/ventom-flutter-api-package/health.svg)

```
[![Health](https://phpackages.com/badges/ventom-flutter-api-package/health.svg)](https://phpackages.com/packages/ventom-flutter-api-package)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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