🐘 PHP Digest

17 result(s) for β€œtyped”

1
MySQL 5.7: SQL functions for JSON

For decades MySQL has considered BLOB a sink for data junk that didn’t fit the strictly typed SQL bill. As the outside world began voting for JavaScript, JSON and key-value/key-document stores, TEXT/BLOB was rediscovered as the only way to store JSON inside MySQL. But havi…

Blogs blog.ulf-wendel.de πŸ’¬ 7 admin 155mo ago
2
Using PHPUnit to verify parameter types (revisited)

(This is an update on a blog post I wrote last year about parameter type checking) PHP is dynamically typed PHP is a dynamically typed language. What this means is that it allows you to do things like : $a = 5; $a = 'test'; $a = false; The reason this works, is because PHP enfor…

Blogs techblog.wimgodden.be πŸ’¬ 2 wimg 193mo ago
3
Typed Translation Accessors in Laravel 13.15.0

Laravel 13.15.0 adds typed translation accessors, JSON Schema deserialization, a dedicated Cloud queue driver, and security fixes for date validation and route unserialization. The post Typed Translation Accessors in Laravel 13.15.0 appeared first on Laravel News. Join the Larav…

Blogs laravel-news.com Paul Redmond 22d ago
4
Lattice: Describe Inertia UIs in PHP

Lattice is a server-driven UI framework for Laravel that lets you define pages, forms, and tables in PHP and renders them as typed React components over Inertia. The post Lattice: Describe Inertia UIs in PHP appeared first on Laravel News. Join the Laravel Newsletter to get all …

Blogs laravel-news.com Paul Redmond 14d ago
5
From Minutes to Seconds: Massive Performance Gains in PHPStan

Strongly-typed object-oriented code helps me tremendously during refactoring. When I realize I need to pass more information from one place to another, I usually take my first step by changing a return typehint, or adding a required parameter to a method. Running PHPStan after m…

Blogs medium.com OndΕ™ej Mirtes 77mo ago
6
How to reload code highlighter on Livewire 3 component update

I use Livewire 3 for interactive forms and fast clickable maps. Last week, I worked on a filter page for the Rector website, where you can use text input to search for core and community rules. I typed "add param" to the input and got the results that best matched the rules I co…

Blogs tomasvotruba.com Tomas Votruba 25mo ago
7
CakePHP Reactions: πŸ‘, ❀️, or πŸš€

Table of Contents Where this plugin fits Installation The database model Attach the behavior Typed reactions with enums Configure public aliases Render a reaction widget Choose a request strategy Counter caches for list views Querying reacted content Custom user models Admin bac…

Blogs dereuromark.de Mark 17d ago
8
Some cool SQLite things

Strict tables For those of you who don't know, SQLite is like a dynamically-typed language. There's no restrictions on what you can and can't store inside of a column. That means if you have a INTEGER column in your database table, there's nothing stopping you from storing a str…

Blogs ryangjchandler.co.uk 26mo ago
9
A mixed type PHPStan journey

A mixed typed represents the absence of type information. It is a union of all types, which means it can be anything. This in turn leads to suboptimal PHPStan analysis results which can lead to missing errors or even false positives. For a few years, I am now contributing to PHP…

Blogs staabm.github.io Markus Staab 19mo ago
10
Improving Laravel Architecture With Expressive

Learn how Expressive can improve a Laravel application by keeping Eloquent as the database layer while moving business logic to fully typed objects. Read more

Blogs freek.dev Freek Van der Herten 9d ago