PHP code example of bound1ess / adviser
1. Go to this page and download the library: Download bound1ess/adviser 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/ */
bound1ess / adviser example snippets
class YourValidator extends \Adviser\Validators\AbstractValidator
{
/**
* @return \Adviser\Output\MessageBag
*/
public function handle()
{
// @todo
}
}
use Adviser\Output\MessageBag;
class YourFormatter extends \Adviser\Output\Formatters\AbstractFormatter
{
/**
* @param MessageBag $bag
* @return string
*/
public function format(MessageBag $bag)
{
// @todo
}
}
shell
curl -sS https://getcomposer.org/installer | php
./composer.phar