Download the PHP package nameless/laravel-api-generator without Composer

On this page you can find all versions of the php package nameless/laravel-api-generator. 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 laravel-api-generator

Laravel API Generator

Latest Version on Packagist Total Downloads License

Laravel API Generator is a professional, enterprise-grade Laravel package that generates complete API structures following best practices and clean architecture principles.


๐Ÿš€ Features

โœจ Complete API Generation

๐Ÿ—๏ธ Architecture & Design Patterns

๐Ÿ”ง Advanced Features


๐Ÿ“ฆ Installation

You can install the package via Composer:

The package automatically registers its service provider.


๐ŸŽฏ Quick Start

Single Entity Generation

Generate a complete API for a single entity:

This creates:

Bulk Generation from JSON

Create a class_data.json file in your project root:

Then run:

Delete Generated API

Remove all generated files for an entity:


๐Ÿ—๏ธ Architecture Overview

Service Layer Pattern

The generated code follows the Service Layer pattern for better organization:

Data Transfer Objects

Type-safe data handling with DTOs:

๐Ÿ› ๏ธ Advanced Usage

Custom Field Types

Supported field types:

Relationship Types

The generator supports all Laravel relationship types:

Model Inheritance

Support for model inheritance:

Generated File Structure

This command generates:

Delete API Structure

To remove the generated API structure, you can use:

This will remove all the generated files from the API structure.

To delete a specific model's API structure, use:

For example:

This will delete all the generated files related to the Post model, including controllers, services, DTOs, policies, resources, factories, seeders, and migrations.


๐Ÿ”ง Configuration

Custom Stubs

You can customize the generated code by publishing and modifying the stubs:

Service Registration

The package automatically registers all generators and services through dependency injection.


๐Ÿงช Testing

Run static analysis:

Format code:


๐Ÿ“– API Documentation

The package integrates with Scramble for automatic API documentation generation.

After generating your APIs, visit /docs/api to see the generated documentation.


Generated Structure

Modern Controller Example

Service

DTO

Model

Resource

Request

Factory

Seeder

Policy

Migration


๐Ÿค Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“š Testing

Run the test suite:

Run static analysis:

Format code:


๐Ÿš€ Local Development

  1. Clone this repository:

  2. Install dependencies:

  3. Run tests:

Testing in a Laravel Project

  1. In your Laravel project's composer.json, add:

  2. Run:

๐Ÿ”’ Security

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


๐Ÿ† Credits


๐Ÿ“š Changelog

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


๐Ÿ’ก Why Choose Laravel API Generator?

โœ… Professional Architecture - Built with enterprise-grade patterns
โœ… Type Safety - Full PHP 8.1+ type declarations
โœ… Clean Code - SOLID principles and clean architecture
โœ… Extensible - Easy to extend with custom generators
โœ… Well Tested - Comprehensive test suite
โœ… Documentation - Complete API documentation generation
โœ… Best Practices - Follows Laravel and PHP best practices

Transform your Laravel development workflow with professional API generation!


๐Ÿ“„ License

This package is open-source and distributed under the MIT License. See the LICENSE file for more details.


All versions of laravel-api-generator with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^10.0 || ^11.0
dedoc/scramble Version ^0.11.31
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 nameless/laravel-api-generator contains the following files

Loading the files please wait ....