Download the PHP package rajska/laravel-arc without Composer

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

Laravel Arc

Arc (architecture) is a dev-only Laravel package that turns your artisan make:* commands into an architecture-aware, config-driven generator — driven by a single arc.neon file at your project root, right next to phpstan.neon.

Instead of fighting Laravel's fixed file locations, you describe your architecture once — modules, DDD layers, hexagonal composition, or a plain vanilla Laravel tree — and Arc transparently intercepts the native make:* commands to put every generated file exactly where your architecture says it belongs.

Arc is a require-dev dependency. It never boots outside your local environment and has zero runtime footprint in production.

Why Arc

Laravel's generators are excellent, but their target paths are effectively hardcoded. The moment you adopt modules, bounded contexts, or a layered architecture, you end up maintaining custom commands, editing stubs by hand, or reaching for a heavier framework-within-a-framework.

Arc takes a different approach:

Requirements

Installation

That's it. Arc auto-registers via package discovery and only activates in your local environment.

Quick Start

Create an arc.neon at your project root:

Now run a native generator:

Arc detects the configured contexts, prompts you to pick one (Catalog or Billing), and generates the file at app/Http/Controllers/Catalog/SupplierController.php — no flags, no new commands to learn.

To skip the prompt, pass the context directly:

Configuration

Arc reads a single arc.neon file. It uses the NEON format — the same human-friendly format PHPStan uses — chosen for its readable entities, which keep declarations compact without sacrificing expressiveness.

Contexts

A context is your unit of business separation — call it a module, a domain, a bounded context, or a feature. The label is cosmetic and configurable; only the list matters.

Layers

Optional. Layers add a second axis of separation — the how within each context. Declare them only when you want a layered or hexagonal composition.

The {context} token is substituted at generation time. A layer marked scoped: false (like a shared Infrastructure kernel) drops the token entirely and never prompts for a context.

Overriding native generators

Point Laravel's built-in make:* commands at your architecture:

Custom generators

Declare brand-new commands that Laravel doesn't ship. No PHP required — Arc registers them dynamically at boot.

A Companion is a secondary file generated alongside the primary one, with its name derived from the primary (e.g. CreateSupplierCreateSupplierContract). Arc generates the companion first, then injects its fully-qualified name into the primary file's implements/extends clause.

When stub is omitted, Arc falls back to a built-in generic class stub that respects any declared extends, implements, and traits.

Vanilla Laravel

No context, no layers — Arc still works. Custom generators resolve to a plain, fixed path:

Development

This package is developed with DDEV (PHP 8.3+).

Contributing

Please see CONTRIBUTING.md for details, including the commit convention.

License

The MIT License (MIT). Please see the LICENSE file for more information.


All versions of laravel-arc with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/console Version ^11.0 || ^12.0 || ^13.0
illuminate/filesystem Version ^11.0 || ^12.0 || ^13.0
illuminate/support Version ^11.0 || ^12.0 || ^13.0
nette/neon Version ^3.4
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 rajska/laravel-arc contains the following files

Loading the files please wait ...