PHP code example of slash-dw / core-kit
1. Go to this page and download the library: Download slash-dw/core-kit 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/ */
slash-dw / core-kit example snippets
use SlashDw\CoreKit\Enums\Concerns\BaseEnumTrait;
use SlashDw\CoreKit\Enums\Concerns\HasColorTrait;
enum Status: int
{
use BaseEnumTrait;
use HasColorTrait;
case Draft = 1;
public function label(): string
{
return 'Draft';
}
}