Tag

helper functions

0 views collected around this technical thread.

Test Development Learning Exchange
Test Development Learning Exchange
Nov 3, 2024 · Fundamentals

Using Helper Functions in Decorators for Modular Code

This article explores how to extract complex logic into helper functions within decorators, enhancing code modularity and reusability through techniques like logging, input validation, and performance measurement.

Code ModularityProgramming Techniquesdecorators
0 likes · 6 min read
Using Helper Functions in Decorators for Modular Code
php中文网 Courses
php中文网 Courses
Apr 8, 2024 · Backend Development

Creating Custom Helper Functions in Laravel 11

This tutorial walks through installing Laravel 11, creating a helpers.php file with reusable functions, registering it via composer.json, adding a route to test the helpers, and finally running the application, providing a complete guide to enhancing code reuse and maintainability in a Laravel backend project.

ComposerLaravelPHP
0 likes · 6 min read
Creating Custom Helper Functions in Laravel 11
php中文网 Courses
php中文网 Courses
Nov 17, 2020 · Backend Development

Common Helper Functions for Hyperf

This article presents a collection of frequently used Hyperf helper functions for PHP developers, including shortcuts for accessing the container, Redis client, Swoole server, WebSocket frame, cache, logging utilities, request and response objects, all demonstrated with complete code examples.

HyperfPHPSwoole
0 likes · 2 min read
Common Helper Functions for Hyperf
php中文网 Courses
php中文网 Courses
Nov 5, 2020 · Backend Development

Essential Laravel Helper Functions for PHP Developers

This article introduces a collection of practical Laravel helper functions—including Str::limit, head, last, Str::between, blank, Str::contains, Arr::pluck, and collect—explaining their purpose, usage, and providing code examples to help PHP developers write cleaner, more efficient backend code.

LaravelLaravel ArrLaravel Str
0 likes · 6 min read
Essential Laravel Helper Functions for PHP Developers
Laravel Tech Community
Laravel Tech Community
Jun 24, 2020 · Backend Development

Laravel Array Helper Functions: Usage and Examples

This article provides a comprehensive guide to Laravel's array helper functions, illustrating how to add, merge, retrieve, filter, and manipulate array data with practical PHP code examples for functions such as array_add, array_collapse, array_divide, array_dot, array_except, array_first, array_last, array_flatten, array_forget, array_get, array_has, array_only, array_pluck, array_prepend, array_pull, array_random, array_set, and array_sort.

LaravelPHParray
0 likes · 7 min read
Laravel Array Helper Functions: Usage and Examples
Python Programming Learning Circle
Python Programming Learning Circle
Jul 6, 2018 · Backend Development

Boost Laravel Productivity: 5 Must‑Know Helper Functions

This article introduces five essential Laravel helper functions—data_get, str_plural, route, abort_if, and optional—explaining their usage with code examples, default values, wildcard support, URL generation, conditional exception handling, and safe property access to streamline backend development.

LaravelPHPWeb Development
0 likes · 7 min read
Boost Laravel Productivity: 5 Must‑Know Helper Functions