Download the PHP package kaue-f/laravel-structura without Composer

On this page you can find all versions of the php package kaue-f/laravel-structura. 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-structura

English | πŸ‡§πŸ‡· PortuguΓͺs

Laravel Structura

Structura comes from Latin and means structure and organization, reflecting the package's purpose.

🌟 Introduction

Laravel Structura is a Laravel package designed to simplify, standardize, and structure the creation of application resources, promoting a clean, scalable, and well-organized development environment.

Through custom Artisan commands, the package enables the automatic generation of classes such as Actions, Cache, Data, Enums, Helpers, Services and Traits, encouraging clear separation of responsibilities and solid architectural best practices.

The main goal of Structura is to reduce repetitive tasks, ensure structural consistency, and help developers keep Laravel projects well-organized as they grow.

✨ Features

πŸ›  Requirements

πŸ“¦ Installation

βš™οΈ Publishing the configuration file

This command creates a new structura.php file in the Laravel application's config directory. It controls namespaces, paths, suffixes, and default options for each generator.

πŸš€ AI Integration (Laravel Boost)

This package ships with a built-in Laravel Boost skill. If your project uses Boost, the Structura skill is automatically discovered and installed when you run:

Once installed, your AI agent will understand the Structura architecture β€” Actions, Services, Data, Enums, Caches, and Helpers β€” and follow all naming conventions and patterns automatically.

πŸ“Œ Available commands

Command Description
structura:action Create Action classes with Makeable & Transaction support
structura:cache Create Cache classes with optional CacheSupport
structura:data Create Data classes with readonly/final patterns
structura:enum Create Enum classes with PHP Attribute mapping
structura:helper Create Helper classes or global helpers
structura:service Create Service classes with Result & Makeable
structura:trait Create Trait classes
structura:install Publish Structura configuration file

πŸ“š Usage examples

Action

Default method: execute(). Override with --handle, --invokable, or --construct.

Pro Tip: By default, makeable is true in config/structura.php β€” every new Action is ready for LogoutAction::run() usage out of the box!

Cache

By default, the class inherits helper methods from CacheSupport (e.g., remember(), forget()). Use --raw to create a plain standalone class.

Data

Data classes are final readonly by default following PHP 8.2 best practices. Generated Data classes implement JsonSerializable and use InteractsWithData, providing make(), from(), fromRequest(), fromArray(), toArray(), and native JSON serialization. Extend DataSupport only when an abstract base class is more suitable than a trait. --raw cannot be combined with other flags.

Enum

Modern Enum Usage: Use toData() for powerful frontend integration:

The InteractsWithEnum trait adds tryFromDefault() fallback support. #[Label], #[Color], #[Icon], and #[DefaultCase] Attributes are supported.

Helper

The --global flag automatically updates composer.json and runs composer dump-autoload so your global functions are immediately available.

Service

ServiceResult standardizes your service responses:

Smart Generation: Combining --method=process with --makeable automatically injects protected string $makeableMethod = 'process' so CommentService::run() dispatches to the right method instantly.

Trait

Traits do not receive automatic suffixes (unlike Actions, Services, etc.). So structura:trait Loggable generates Loggable.php, not LoggableTrait.php.

βš™οΈ Default Configuration (config/structura.php)

After publishing, you can set package-wide defaults in config/structura.php:

CLI flags always override config defaults.

🧱 Example Structure

πŸ“„ License

Released under the MIT License.


All versions of laravel-structura with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
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 kaue-f/laravel-structura contains the following files

Loading the files please wait ...