string - библиотека для манипуляции с multibyte strings
use Opis\String\UnicodeString as wstring;
$str = wstring::from('??????????');
echo $str->substring(3, 4)
->toUpper(); //> ????https://github.com/opis/string

use Opis\String\UnicodeString as wstring;
$str = wstring::from('??????????');
echo $str->substring(3, 4)
->toUpper(); //> ????use Goutte\Client;
$client = new Client();
// переходим на сайт
$crawler = $client->request('GET', 'http://www.symfony.com/blog/');
// нажать на ссылку
$link = $crawler->selectLink('Security Advisories')->link();
$crawler = $client->click($link);
// получить данные
$crawler->filter('h2 > a')->each(function ($node) {
print $node->text()."\n";
});require_once 'vendor/autoload.php';
use ColorThief\ColorThief;
$dominantColor = ColorThief::getColor($sourceImage);use Grafika\Grafika;
$editor = Grafika::createEditor();
$editor->open( "path/to/jpeg/image.jpg" );
$editor->resizeExact( 200, 200 );
$editor->save( "path/to/edited.jpg", null, 90 );Категории:
Оставить на заметку в: