Download the PHP package opentech/directories without Composer

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

24/04/2025

You don't need to do this!!!!!!

This was an experiment, but you don't need to do this!!!

A simpler way is to just modify the bootstrap/app.php file and your composer.json file

Simply add ...... create()->useAppPath(__DIR__.'/../app/Infrastructure);

Move all folders from /app into app/Infrastruction and then add other namespaces and modify namespace as you like in your psr-4 section of your composer.json file

Still has some caveats with 3rd party packages that may hard code namespaces to Models and such, but there are ways around that too if you get creative by extending those files and binding your class over theirs, but they few and far between.

I like this structure, it mimics close to Hexagonal (ports and adapters) architecture pattern

Lara Directories Package

!!!! This is experimental and comes with some caveats !!!!
The Laravel Directories package, opentech/directories, aims to provide a more flexible and organized directory structure for Laravel applications. By modifying the default Laravel configuration, you can break out of the default folder structure and separate your infrastructure, application, and domain logic.

Installation

  1. Install the package using Composer:

  2. Modify the bootstrap/app.php file to initialize the package's factory:

  3. Publish the package's configuration file:

This will create a new configuration file at config/directories.php. You can modify this file to customize the namespaces and paths according to your project's needs.

  1. Move the routes files to the Routes folder:

By default, Laravel stores its routes in the routes directory. To use the package's modified routes structure, move the web.php and console.php files to the Infrastructure/Http/Routes folder. Update the routes configuration in the config/directories.php file accordingly.

Caveats

Contributing

Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.

License

The Lara Directories package is open-sourced software licensed under the GNU General Public License v3.0.

Credits

This package was developed by Ron Darby @ OpenTech Solutions.


All versions of directories with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version ^12.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 opentech/directories contains the following files

Loading the files please wait ...