Download the PHP package marghoobsuleman/apiwizard without Composer

On this page you can find all versions of the php package marghoobsuleman/apiwizard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package apiwizard

APIWizard - Laravel API Generator

Latest Version on Packagist Total Downloads

A powerful Laravel package that generates models, relations, and complete REST APIs from an interactive command line interface or via command options.

โœจ Features

๐Ÿ“‹ Requirements

๐Ÿ“ฆ Installation

Install the package via Composer:

The package will automatically register its service provider.

Publish Configuration (Optional)

Publish Stubs (Optional)

๐Ÿš€ Usage

Available Commands

The package provides two commands (both work identically):

Interactive Mode

Run the command and follow the prompts:

Example Interactive Session:

Non-Interactive Mode

Use command options for automation:

Available Options:

Option Description Example
--table Table name (required for non-interactive) --table=users
--relations Relations in format "table:type" (can be used multiple times) --relations=posts:hasMany --relations=profile:hasOne
--endpoint API endpoint path --endpoint=/api/users
--transform Include transform method in model --transform
--no-api Skip API generation (model only) --no-api

Examples:

Generate model with multiple relations:

Generate model without API:

Simple model with API:

๐Ÿ“š What Gets Generated

1. Model File

Generated at app/Models/{ModelName}.php:

2. Controller File

Generated at app/Http/Controllers/API/{ModelName}Controller.php:

3. API Routes

Added to routes/api.php:

This creates the following endpoints:

โš™๏ธ Configuration

After publishing the config file, you can customize:

๐ŸŽจ Customizing Stubs

Publish the stubs and modify them to match your preferences:

Stubs will be published to stubs/apiwizard/:

๐Ÿ”— Supported Relation Types

๐Ÿ’ก Tips & Best Practices

  1. Always review generated code - The package creates a solid foundation, but you should review and customize:

    • Add proper validation rules in controllers
    • Define fillable/guarded attributes in models
    • Customize transform methods for your API responses
  2. Use transform methods - They provide a clean way to control API output without cluttering controllers

  3. Leverage non-interactive mode - Perfect for:

    • CI/CD pipelines
    • Seeding multiple models
    • Scripted setups
  4. Customize stubs - Publish and modify stubs to match your team's coding standards

๐Ÿงช Testing

Run the tests with:

๐Ÿ“ Changelog

Please see CHANGELOG for more information on what has changed recently.

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

๐Ÿ”’ Security

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

๐Ÿ“„ License

The MIT License (MIT). Please see License File for more information.

๐Ÿ‘ Credits

๐ŸŒŸ Support

If you find this package helpful, please consider giving it a โญ๏ธ on GitHub!


Made with โค๏ธ for the Laravel community


All versions of apiwizard with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0
illuminate/console Version ^11.0|^12.0
illuminate/filesystem Version ^11.0|^12.0
laravel/framework Version 11.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package marghoobsuleman/apiwizard contains the following files

Loading the files please wait ...