email: [email protected]
skype: utz0r2
github: utz0r2
Разделы: CSS, HTML, PHP, JS, Видео, Заметки
Скрипты: vvStore | vvShop | Avox
© 2008 – 2019

kenwheeler/cash - уменьшенная альтернатива jQuery для современных браузеров

Minified & Gzipped - 5 KB, на 85% меньше jQuery
<script src="https://cdnjs.cloudflare.com/ajax/libs/cash/4.1.1/cash.min.js"></script>
<script>
  $(function () {
    $('html').addClass ( 'dom-loaded' );
    $('<footer>Appended with Cash</footer>').appendTo ( document.body );
  });
</script>

https://github.com/kenwheeler/cash

VanOns/laraberg - реализация гутенберга на ларавел

$content // This is the raw content from the Gutenberg editor
$model = new MyModel;

// Add or update the content & (if true is provided) call save() on the content object
$model->setContent($content, true);

// Get the rendered HTML inside of a container
// This is the function you should use for rendering the content on a page
$model->renderContent();

// Get the rendered content
$model->getRenderedContent();

// Get the raw content
$model->getRawContent();

https://github.com/VanOns/laraberg

cartalyst/sentinel – универсальная библиотека для аутентификации и авторизации пользователей

$credentials = [
    'email'    => '[email protected]',
    'password' => 'password',
];

Sentinel::authenticate($credentials);

https://github.com/cartalyst/sentinel

makasim/yadm — библиотека для работы с СУБД MongoDB в PHP

$order = new Order();
set_value($order, 'id', Uuid::generate()->toString());
set_value($order, 'createdAt', (new \DateTime())->format('U'));

$storage->insert($order);

$id = get_value($order, 'id');

// find by uuid
$anotherOrder = $storage->findOne(['id' => new Uuid($id)]);

// do not update id if not changed
$storage->update($anotherOrder);

// update on change
set_value($anotherOrder, 'id', Uuid::generate()->toString());
$storage->update($anotherOrder);

https://github.com/makasim/yadm

egulias/emailvalidator - email валидатор

Поддерживает такие проверки:
- RFCValidation
- NoRFCWarningsValidation
- DNSCheckValidation
- SpoofCheckValidation
- MultipleValidationWithAnd
- Ваша собственная валидация
<?php

use Egulias\EmailValidator\EmailValidator;
use Egulias\EmailValidator\Validation\DNSCheckValidation;
use Egulias\EmailValidator\Validation\MultipleValidationWithAnd;
use Egulias\EmailValidator\Validation\RFCValidation;

$validator = new EmailValidator();
$multipleValidations = new MultipleValidationWithAnd([
    new RFCValidation(),
    new DNSCheckValidation()
]);
$validator->isValid("[email protected]", $multipleValidations); //true

https://github.com/egulias/emailvalidator

ausi/slug-generator - slug генератор на PHP

<?php
use Ausi\SlugGenerator\SlugGenerator;

$generator = new SlugGenerator;

$generator->generate('Hello W?rld!');  // Output: hello-world
$generator->generate('????????');      // Output: kalemera
$generator->generate('фильм');         // Output: film
$generator->generate('???');         // Output: fu-shi-shan
$generator->generate('??');           // Output: guo-yu

// Different valid character set, a specified locale and a delimiter
$generator = new SlugGenerator((new SlugOptions)
    ->setValidChars('a-zA-Z0-9')
    ->setLocale('de')
    ->setDelimiter('_')
);
$generator->generate('?pfel und B?ume');  // Aepfel_und_Baeume

https://github.com/ausi/slug-generator
«»
Вверх