Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Extended Php Laravel Package

open-southeners/extended-php

Extended PHP helpers for modern apps: adds convenient functions, utilities, and small enhancements that complement core PHP to reduce boilerplate and speed up everyday development. Lightweight, easy to drop into existing projects.

View on GitHub
Deep Wiki
Context7

description: List of functions that works for PHP strings.

Strings helpers

is_json

{% hint style="warning" %} Since PHP 8.3+ this function will throw a deprecated warning message to move to PHP's native function instead (json_validate) which works similarly. {% endhint %}

Check if a variable is a valid json string.

$json = '{}';

\OpenSoutheners\ExtendedPhp\Strings\is_json($json); // true

is_json_structure

Similarly than is_json function but this one also checks if the data inside the string is also a valid JSON data structure (starting with { or [):

$json = '1';

\OpenSoutheners\ExtendedPhp\Strings\is_json_structure($json); // false

get_email_domain

Get domain part from email address:

$email = '[email protected]';

\OpenSoutheners\ExtendedPhp\Strings\get_email_domain($email); // 'mydomain.com'
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
takashato/laravel-vietqr
aitor24/laralang
kraenzle-ritter/entity-relations
dindigital/din-image
pomirleanu/image-colors
sawmainek/laravel-api-generator
delatbabel/jsonresponses
mouhamedfd/permissions-generator
eduplus/qr
laravel2580/idehelpers
delatbabel/viewpages
anavel/gettext
muhamadrezaar/highcharts
delatbabel/keylists
frankkessler/salesforce-laravel-oauth2-rest
anavel/foundation
wdmtech/enviricons
eii/laravel-captcha
muka/shape-reader
tdt/json