1. Go to this page and download the library: Download laymont/shicontstand 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/ */
laymont / shicontstand example snippets
use Laymont\Shicontstand\Repositories\TypeGroupRepository;
use Laymont\Shicontstand\Models\TypeGroup;
$repository = new TypeGroupRepository(new TypeGroup());
// Get all
$groups = $repository->all();
// Get by code
$group = $repository->find('22G1');
// Query builder
$groups = $repository->query()->where('code', 'like', '2%')->get();
use Shicontstand;
// Get all type groups
Shicontstand::getTypeGroups();
// Get specific type group
Shicontstand::getTypeGroup('20GP');
// Get all size types
Shicontstand::getSizeTypes();
// Get specific size type
Shicontstand::getSizeType('22G1');
public function __construct(
protected \Laymont\Shicontstand\Shicontstand $shicontstand
) {}
public function index()
{
return $this->shicontstand->getTypeGroups();
}
use Laymont\Shicontstand\Http\Concerns\ContainerValidation;
class Container extends Model
{
use ContainerValidation;
}