1. Go to this page and download the library: Download evotic/make-extended 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/ */
evotic / make-extended example snippets
// app/Actions/ProcessOrderAction.php
namespace App\Actions;
class ProcessOrderAction
{
public function __invoke()
{
//
}
}
// app/DTOs/UserDto.php
namespace App\DTOs;
class UserDto
{
public function __construct(
//
) {}
// Add your methods here
}
// app/Repositories/UserRepository.php
namespace App\Repositories;
class UserRepository
{
public function all()
{
// Fetch all users
}
public function find($id)
{
// Find a user by ID
}
public function create(array $data)
{
// Create a new user
}
public function update($id, array $data)
{
// Update an existing user
}
public function delete($id)
{
// Delete a user
}
}
// app/Services/PaymentService.php
namespace App\Services;
class PaymentService
{
public function __construct()
{
//
}
// Add your methods here
}