shekarsiri / structure by shekarsiri

Laravel artisan command to create the basic application structure.
68
2
2
Package Data
Maintainer Username: shekarsiri
Maintainer Contact: sshekarsiri@gmail.com (shekarsiri)
Package Create Date: 2015-06-16
Package Last Update: 2015-11-30
Language: PHP
License: MIT
Last Refreshed: 2024-11-11 15:22:53
Package Statistics
Total Downloads: 68
Monthly Downloads: 1
Daily Downloads: 1
Total Stars: 2
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Structure

Laravel artisan command to create the basic Application Structure.

Install

composer require shekarsiri/strucutre

Update the config file (config/app.php)

'providers' => [
	...,
	ShekarSiri\Structure\StructureServiceProvider::class,
];

Run the command

php artisan structure:make SomeApp/Post
php artisan structure:make SomeApp/Product

Results


└── SomeApp
    ├── Post
    │   ├── Events
    │   │   ├── PostCreatedEvent.php
    │   │   ├── PostDeletedEvent.php
    │   │   └── PostUpdatedEvent.php
    │   ├── Exceptions
    │   ├── Facades
    │   │   └── Post.php
    │   ├── Jobs
    │   │   ├── PostCreate.php
    │   │   ├── PostDelete.php
    │   │   └── PostUpdate.php
    │   ├── Listeners
    │   ├── Post.php
    │   ├── PostService.php
    │   ├── PostServiceProvider.php
    │   ├── Providers
    │   │   └── PostEventServiceProvider.php
    │   ├── Repositories
    │   │   ├── PostRepository.php
    │   │   └── PostRepositoryEloquent.php
    │   └── Requests
    │       ├── PostCreateRequest.php
    │       └── PostUpdateRequest.php
    └── Product
        ├── Events
        │   ├── ProductCreatedEvent.php
        │   ├── ProductDeletedEvent.php
        │   └── ProductUpdatedEvent.php
        ├── Exceptions
        ├── Facades
        │   └── Product.php
        ├── Jobs
        │   ├── ProductCreate.php
        │   ├── ProductDelete.php
        │   └── ProductUpdate.php
        ├── Listeners
        ├── Product.php
        ├── ProductService.php
        ├── ProductServiceProvider.php
        ├── Providers
        │   └── ProductEventServiceProvider.php
        ├── Repositories
        │   ├── ProductRepository.php
        │   └── ProductRepositoryEloquent.php
        └── Requests
            ├── ProductCreateRequest.php
            └── ProductUpdateRequest.php