Download the PHP package lomkit/laravel-osdd without Composer

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

Laravel OSDD: split your Laravel application into independent layers

Tests Latest version Total downloads

Documentation · Upgrade from 2.x

Laravel OSDD

One domain, one layer.

Laravel OSDD (Open Source Driven Development) splits your application into layers. Each layer is a Composer package of its own, with its models, migrations, seeders, tests, routes and service provider. Each layer declares the layers it depends on in its composer.json, which keeps the boundaries between domains visible as the application grows, and osdd:check makes sure the code respects them.

Documentation

The full guide lives on the documentation site: installation, layers, every command and the API reference. Coming from 2.x? Read the upgrade guide.

AI assistants can read the same documentation as Markdown through llms.txt.

Requirements

PHP 8.3+ and Laravel 13.

From app/ to layers

1. Install the package on a fresh Laravel application.

osdd:start creates the functional/users layer (the User model, its migration, factory and seeder) and the technical/osdd configuration layer, which also holds the cache and queue tables and makes the layer seeders the default seeder of db:seed and migrate --seed. After you confirm, it removes app/ and the root config/, and empties database/ except the SQLite database. Pass --force to run it from a script.

2. Create a layer for each domain.

The command asks where to create the layer (functional or technical), its name and the files to generate, then registers the layer in your root composer.json. In a script, name the layer and pick the generators:

3. Generate code inside the layer.

The controller lands in functional/orders/src/Http/Controllers, not in app/. --layer=orders works too while no other layer is named orders. Without a terminal, --layer is required.

4. Keep the boundaries.

All layers share one Composer autoloader, so PHP lets functional/orders use a class of functional/billing even when functional/orders does not require it. osdd:check closes that gap: it reads the PHP files of every layer and fails when a layer uses a layer it does not require, or when the requirements form a cycle.

Run it in CI with php artisan osdd:check --format=github to get the violations as annotations on the pull request, and draw the layers with php artisan osdd:graph (Mermaid, DOT or JSON).

Commands

Command Description
osdd:start Prepare a fresh Laravel project for layers
osdd:layer Create a new layer
osdd:list List the layers with their providers, dependencies, file counts and health (--json)
osdd:check Check that each layer only uses the layers it requires, and that no requirements form a cycle (--transitive, --format=json or github)
osdd:graph Print the layer graph from the require entries (--format=mermaid, dot or json)
osdd:seed Run the seeders registered by every layer (Lomkit\Osdd\Seeders\LayersSeeder), or by the layers given with --layer
osdd:phpunit Sync phpunit.xml with the test suite and the source directory of each layer
osdd:remove Remove a layer that no other layer requires: its root require entry, its path repository when no other package uses it, its phpunit.xml entries and its directory (--keep-files, --force)
osdd:cache / osdd:clear Cache the discovered layers in bootstrap/cache/osdd.php, or remove that cache. php artisan optimize and optimize:clear run them
osdd:* Twins of the make:* generators (osdd:model, osdd:component, osdd:queue-table, …), writing inside a layer and wiring the layer provider

php artisan about --only=osdd lists the discovered layers, the migration paths and the number of registered seeders.

See the command reference for every option.

Contributing

Contributions are welcome: open an issue or a pull request.

License

Laravel OSDD is open-source software licensed under the MIT license.


All versions of laravel-osdd with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-dom Version *
laravel/framework Version ^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 lomkit/laravel-osdd contains the following files

Loading the files please wait ...