PHP code example of anas / easy-dev
1. Go to this page and download the library: Download anas/easy-dev library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
anas / easy-dev example snippets bash
php artisan easy-dev:ai-context --pretty
php artisan easy-dev:snapshot --ai
php artisan easy-dev:analyze --json
bash
php artisan route:list --path=products
bash
php artisan test
bash
php artisan vendor:publish --tag=easy-dev-config
bash
php artisan easy-dev:publish-stubs
text
app/
Http/
Controllers/
Api/
ProductApiController.php
Requests/
StoreProductRequest.php
UpdateProductRequest.php
Resources/
ProductResource.php
Services/
ProductService.php
Repositories/
ProductRepository.php
Policies/
ProductPolicy.php
DTOs/
ProductData.php
routes/
api.php
tests/
Feature/
ProductApiTest.php
storage/
app/
easy-dev/
openapi.json
bash
php artisan easy-dev:crud Product --api
bash
php artisan easy-dev:crud Product --api --tests
bash
php artisan easy-dev:crud Product --api --with-service --tests
bash
php artisan easy-dev:swagger
bash
php artisan easy-dev:ai-context --pretty
text
app/
Models/Product.php
Http/Controllers/ProductController.php
Http/Controllers/Api/ProductApiController.php
Http/Requests/StoreProductRequest.php
Http/Requests/UpdateProductRequest.php
Http/Resources/ProductResource.php
Http/Resources/ProductCollection.php
database/
migrations/xxxx_xx_xx_xxxxxx_create_products_table.php
routes/
web.php
api.php
bash
php artisan easy-dev:crud Invoice --architecture=laravel
text
app/Modules/Sales/
Models/Order.php
Http/Controllers/OrderController.php
Http/Controllers/Api/OrderApiController.php
Http/Requests/StoreOrderRequest.php
Http/Requests/UpdateOrderRequest.php
Http/Resources/OrderResource.php
Repositories/OrderRepository.php
Repositories/Contracts/OrderRepositoryInterface.php
Services/OrderService.php
Services/Contracts/OrderServiceInterface.php
bash
php artisan easy-dev:test Product
bash
php artisan easy-dev:test Product --api --feature --unit --service --repository
bash
php artisan easy-dev:swagger Product
bash
php artisan easy-dev:swagger Product --format=yaml
bash
php artisan easy-dev:analyze
bash
php artisan easy-dev:analyze --json
bash
php artisan easy-dev:analyze --fix
bash
php artisan easy-dev:add-relation Post belongsTo User
bash
php artisan easy-dev:repository Product
php artisan easy-dev:api-resource Product
php artisan easy-dev:policy Product
php artisan easy-dev:dto Product
php artisan easy-dev:observer Product --register
php artisan easy-dev:filter Product
php artisan easy-dev:enum OrderStatus --values=pending,paid,cancelled
bash
php artisan easy-dev:crud Product --inertia
php artisan easy-dev:crud Product --vue
php artisan easy-dev:crud Product --react
php artisan easy-dev:crud Product --livewire
bash
php artisan easy-dev:ai-context --pretty
php artisan easy-dev:snapshot --ai
php artisan easy-dev:info Product --ai
bash
php artisan easy-dev:crud Product --api --ai
bash
php artisan easy-dev:publish-stubs
bash
php artisan easy-dev:publish-stubs --list
bash
php artisan easy-dev:publish-stubs --only=controller.api,service.enhanced
bash
php artisan easy-dev:publish-stubs --force
bash
php artisan vendor:publish --tag=easy-dev-config