Рубрика: PHP
orbit – a flat-file database driver for Eloquent

use Illuminate\Database\Schema\Blueprint;
class Post extends Model
{
use Orbit\Concerns\Orbital;
public static function schema(Blueprint $table)
{
$table->string('title');
$table->string('slug');
$table->text('content')->nullable();
$table->timestamp('published_at');
}
}
Laravel Themer package: add multi-theme support for Laravel application

This Laravel Themer package adds multi-theme support to your Laravel application. It also provides a simple authentication scaffolding and presets for Bootstrap, Tailwind, Vue, and React as a starting point for building a Laravel application.
Good report about common web security by Makarov (Yii)
Discussed options for solving problems related to XSS, CSRF, DDoS, include, Clickjacking, password cracking and more. From basic things to the peculiarities of the language. Enjoy watching!
heyupdate/Emoji – эмодзи из символов и имен Unicode на PHP
use HeyUpdate\Emoji\Emoji;
use HeyUpdate\Emoji\EmojiIndex;
$emoji = new Emoji(new EmojiIndex(), '//twemoji.maxcdn.com/36x36/%s.png');
$emoji->replaceEmojiWithImages('🎈 :balloon:');
Скрипт генерации меню на PHP
require 'vendor/autoload.php';
use Knp\Menu\MenuFactory;
use Knp\Menu\Renderer\ListRenderer;
$factory = new MenuFactory();
$menu = $factory->createItem('My menu');
$menu->addChild('Home', ['uri' => '/']);
$menu->addChild('Comments', ['uri' => '#comments']);
$menu->addChild('Symfony', ['uri' => 'http://symfony.com/']);
$menu->addChild('Happy Awesome Developers');
$renderer = new ListRenderer(new \Knp\Menu\Matcher\Matcher());
echo $renderer->render($menu);
https://github.com/KnpLabs/KnpMenu
$pages = [
'/' => 'Home',
'/about' => 'About',
'/contact' => 'Contact',
];
Menu::build($pages, function ($menu, $label, $url) {
$menu->add($url, $label);
})->render();