PHP code example of sierratecnologia / muleta

1. Go to this page and download the library: Download sierratecnologia/muleta 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/ */

    

sierratecnologia / muleta example snippets


use Muleta\Traits\Coder\GetSetTrait;
    ...
    /**
     * Atributos
     */
    use GetSetTrait;

    /**
     * Identify ClassName
     *
     * @var          string
     * @getter       true
     * @setter       false
     * @serializable true
     */
    protected $modelClass;
    ...

intend([
    'route' => 'route.name.here',
    'withErrors' => ['error.message.id' => 'A custom error message'],
]);

$lowercaseStr = lower_case('THIS UPPER CASE TEXT WILL BE LOWER CASED');

$uppercaseStr = upper_case('this lower case text will be capitalized');

$mimetypes = mimetypes();

$timezones = timezones();