Разделы
Veselov CV | vvShop © 2008 – 2018
Контакты
email: igor@veselov.sumy.ua
skype: utz0r2
» »

imanghafoori1/laravel-heyman - laravel библиотека для удобной авторизации и валидации


imanghafoori1/laravel-heyman - laravel библиотека для удобной авторизации и валидации

https://github.com/imanghafoori1/laravel-heyman

paragonie/easydb - пхп обертка для PDO


The PDO Way
$db = new \PDO(
    'mysql:host=localhost;dbname=something',
    'username',
    'putastrongpasswordhere'
);

$statement = $db->prepare('SELECT * FROM comments WHERE blogpostid = ? ORDER BY created ASC');
$exec = $statement->execute([$_GET['blogpostid']]);
$rows = $statement->fetchAll(\PDO::FETCH_ASSOC);
foreach ($rows as $row) {
    $template_engine->render('comment', $row);
}

The EasyDB Solution
$db = \ParagonIE\EasyDB\Factory::create(
    'mysql:host=localhost;dbname=something',
    'username',
    'putastrongpasswordhere'
);

$rows = $db->run('SELECT * FROM comments WHERE blogpostid = ? ORDER BY created ASC', $_GET['blogpostid']);
foreach ($rows as $row) {
    $template_engine->render('comment', $row);
}

https://github.com/paragonie/easydb

antonioribeiro/health - панель управления Laravel


antonioribeiro/health - панель управления Laravel

https://github.com/antonioribeiro/health

nette/utils - пхп класс помощник для работы с строками, массивами, датами, джисонами и тд.


Класс для работы с:
Arrays - manipulate arrays
Callback - PHP callbacks
Date and Time - modify times and dates
Filesystem - copying, renaming, …
HTML elements - generate HTML
Images - crop, resize, rotate images
JSON - encoding and decoding
Generating Random Strings
Pagination - comfort pagination
Strings - useful text transpilers
SmartObject - PHP Object Enhancements
Validation - validate inputs
$array = ['color' => ['favorite' => 'red'], 5];

$value = Arrays::get($array, ['color', 'favorite']);
// returns 'red'

https://github.com/nette/utils

soluble-mediatools - php обертка для video conversions, transcoding, querying, thumbnailing, wraps around ffmpeg and ffprobe


<?php
use Soluble\MediaTools\Video\Config\FFProbeConfig;
use Soluble\MediaTools\Video\Exception\InfoReaderExceptionInterface;
use Soluble\MediaTools\Video\VideoInfoReader;

$infoReader = new VideoInfoReader(new FFProbeConfig('/path/to/ffprobe'));

try {
    $videoInfo = $infoReader->getInfo('/path/video.mp4');
} catch (InfoReaderExceptionInterface $e) {
    // see below for exceptions
}

$duration = $videoInfo->getDuration();
$frames   = $videoInfo->getNbFrames();
$width    = $videoInfo->getWidth();
$height   = $videoInfo->getHeight();

// Or alternatively
['width' => $width, 'height' => $height] = $videoInfo->getDimensions();
       

https://github.com/soluble-io/soluble-mediatools/

php-enqueue/enqueue-dev - обертка для очередей PHP, Symfony, Laravel, Magento


php-enqueue/enqueue-dev - обертка для очередей PHP, Symfony, Laravel, Magento

https://github.com/php-enqueue/enqueue-dev
«»
Вверх