inmanturbo / tandem
The skeleton application for the Laravel framework.
Installs: 94
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^8.2
- laravel/framework: ^11.9
- laravel/tinker: ^2.9
Requires (Dev)
- fakerphp/faker: ^1.23
- laravel/pint: ^1.13
- laravel/sail: ^1.26
- mockery/mockery: ^1.6
- nunomaduro/collision: ^8.0
- pestphp/pest: ^3.2
- pestphp/pest-plugin-laravel: ^3.0
- phpstan/phpstan: ^1.12
- rector/rector: ^1.2
README
Tandem
Run Laravel apps in tandem like packages or modules
There are two ways to use tandem. You can use it as a template or a package.
As a package
composer require inmanturbo/tandem
As a template
Clone or fork this repo.
Usage
Tandem is just a minimal laravel app and/or package with an additional artisan command tandem
.
php artisan tandem <mod-name> <vendor-namespace> <app-namespace> --init --install
Example:
php artisan tandem teams Inmanturbo Teams --init --install
The above example will create a directory called mod and install a laravel app into a folder called teams inside of it, renaming the App and Database namespaces to Inmanturbo\Teams
and Inmanturbo\Teams\Database
, respectively.
Also will update composer.json to reflect namespace, and add Inmanturbo\Teams\Providers\AppServiceProvider
to the extras.laravel.providers
array.
Additionally, any stub files found within base_path('stubs/mod')
will be copied into the "package" as well, at the path relative to their path within base_path('stubs/mod')
.
Lastly, it will add a local repository to your main app's composer.json at the path mod/*
, and install the package into your app using a symlink.
You will be able to use your package as a project and/or package, and use artisan commands from within the package during development.