sierratecnologia / muleta
SierraTecnologia common support helpers, contracts, and traits required by various SierraTecnologia packages. Validator functionality, and basic controller included out-of-the-box.
Fund package maintenance!
ricasolucoes
ricasolucoes.com.br/open-source/support-us
Requires
- php: ^7.2|^8.0
- laravel/helpers: ^1.1
- ricardosierra/changelog: ~1.4
- sierratecnologia/crypto: ^0.4.0
- vanderlee/php-sentence: >=1.0
Requires (Dev)
- barryvdh/laravel-debugbar: ^3.2
- barryvdh/laravel-ide-helper: ^2.6
- codedungeon/phpunit-result-printer: >=0.27.0
- friendsofphp/php-cs-fixer: ^2.16
- fzaninotto/faker: ^1.4
- laravel/browser-kit-testing: ^6.0
- laravel/dusk: ^6.2
- mockery/mockery: ^1.0
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
- squizlabs/php_codesniffer: ^3.4
This package is auto-updated.
Last update: 2024-12-16 05:43:49 UTC
README
SierraTecnologia common Muleta helpers, contracts, and traits required by various SierraTecnologia packages. Validator functionality, and basic controller included out-of-the-box.
Note: this package is just a support package for other SierraTecnologia packages, which may not be useful on it's own, but contains some complementary generic functionality and also may not respect SemVer and break backward compatibility.
Installation
Install via composer require sierratecnologia/muleta
Usage
Get/Set Generator
Use o Trait na classe e add a documentação corretamente
use Muleta\Traits\Coder\GetSetTrait; ... /** * Atributos */ use GetSetTrait; /** * Identify ClassName * * @var string * @getter true * @setter false * @serializable true */ protected $modelClass; ...
Support Helpers
intend()
The intend
method returns redirect response:
intend([ 'route' => 'route.name.here', 'withErrors' => ['error.message.id' => 'A custom error message'], ]);
Note: this helper accepts
redirect
methods as it's input keys, such aswithErrors
,with
,back
, androute
..etc
lower_case()
The lower_case
method converts the given string to lower-case:
$lowercaseStr = lower_case('THIS UPPER CASE TEXT WILL BE LOWER CASED');
upper_case()
The upper_case
method converts the given string to upper-case:
$uppercaseStr = upper_case('this lower case text will be capitalized');
mimetypes()
The mimetypes
method gets valid mime types:
$mimetypes = mimetypes();
timezones()
The timezones
method gets valid timezones:
$timezones = timezones();
Changelog
Refer to the Changelog for a full history of the project.
Support
The following support channels are available at your fingertips:
Contributing & Protocols
Thank you for considering contributing to this project! The contribution guide can be found in CONTRIBUTING.md.
Bug reports, feature requests, and pull requests are very welcome.
Security Vulnerabilities
If you discover a security vulnerability within this project, please send an e-mail to help@sierratecnologia.com. All security vulnerabilities will be promptly addressed.
About SierraTecnologia
SierraTecnologia is a software solutions startup, specialized in integrated enterprise solutions for SMEs established in Alexandria, Egypt since June 2016. We believe that our drive The Value, The Reach, and The Impact is what differentiates us and unleash the endless possibilities of our philosophy through the power of software. We like to call it Innovation At The Speed Of Life. That’s how we do our share of advancing humanity.
License
This software is released under The MIT License (MIT).
(c) 2016-2020 SierraTecnologia LLC, Some rights reserved.