PHP code example of thesoftpulze / laravibe-standards
1. Go to this page and download the library: Download thesoftpulze/laravibe-standards 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/ */
thesoftpulze / laravibe-standards example snippets
final readonly class UserProfileDTO implements Arrayable, Jsonable
{
use \TheSoftPulze\LaravibeStandards\DTOs\Concerns\AsDTO;
public function __construct(
public string $name,
public ?string $bio = null,
) {
}
}
enum ToastType: int
{
use \TheSoftPulze\LaravibeStandards\Enums\Concerns\HasEnumMetadata;
case Error = 1;
case Success = 2;
case Warning = 3;
case Info = 4;
}