Tag

utility functions

0 views collected around this technical thread.

Laravel Tech Community
Laravel Tech Community
Mar 18, 2025 · Backend Development

Using devkeep/tools PHP Package: Installation, Utility Functions, and Example Usage

This article introduces the devkeep/tools PHP package, explains how to install it, lists its extensive utility functions for data handling, and provides concrete code examples demonstrating tasks such as array sorting, tree classification, Excel export, QR code generation, and email sending.

Code ExamplePHPdevkeep
0 likes · 4 min read
Using devkeep/tools PHP Package: Installation, Utility Functions, and Example Usage
Laravel Tech Community
Laravel Tech Community
Sep 7, 2022 · Backend Development

Common PHP File and Directory Utility Functions

This article provides a collection of reusable PHP functions for checking, creating, listing, copying, and deleting files and directories, offering developers ready‑to‑use code snippets that simplify common filesystem operations in backend projects.

Directory OperationsFile SystemPHP
0 likes · 5 min read
Common PHP File and Directory Utility Functions
IT Services Circle
IT Services Circle
Apr 18, 2022 · Backend Development

Using .pth Files to Globally Import Custom Python Utility Modules

This article explains how to place a folder of reusable Python utility scripts into a .pth file within the site‑packages directory so that the modules can be imported in any project without manually copying files or modifying sys.path, streamlining development across virtual environments.

.pthPythondevelopment
0 likes · 5 min read
Using .pth Files to Globally Import Custom Python Utility Modules
php中文网 Courses
php中文网 Courses
Aug 5, 2021 · Backend Development

Common PHP Utility Functions for String Handling, Encryption, and Validation

This article presents a collection of practical PHP utility functions—including string truncation with ellipsis, MD5-based encryption, phone number masking, mobile, numeric and email validation, as well as recursive category handling—complete with usage scenarios and full source code to help developers quickly implement common backend tasks.

PHPValidationbackend
0 likes · 8 min read
Common PHP Utility Functions for String Handling, Encryption, and Validation
Qunar Tech Salon
Qunar Tech Salon
Jan 10, 2020 · Frontend Development

Building a TypeScript Utility Library: setDefaults, getProperty, Testing and Multi‑Format Packaging

This article explains how to design and implement a TypeScript utility package with complex type declarations for functions like setDefaults and getProperty, demonstrates unit testing using ts‑mocha and chai, and details the compilation and packaging process for CommonJS, ES modules, type declarations, and UMD bundles using Rollup.

Build ToolsRollupTesting
0 likes · 14 min read
Building a TypeScript Utility Library: setDefaults, getProperty, Testing and Multi‑Format Packaging
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
May 28, 2019 · Backend Development

Unlock Go’s gobox Framework: Exception Handling, Utilities & Practical Examples

This article introduces the lightweight Go framework gobox, demonstrating its exception definition, common utility functions such as slice deduplication, file and directory existence checks, recursive file listing, JSON file saving and parsing, substring extraction, time formatting constants, and random number generation based on timestamps, all with clear code examples.

Backend DevelopmentException HandlingGo
0 likes · 8 min read
Unlock Go’s gobox Framework: Exception Handling, Utilities & Practical Examples
Baidu Tech Salon
Baidu Tech Salon
Dec 29, 2014 · Backend Development

Useful PHP Code Snippets for Common Tasks

These practical PHP snippets demonstrate how to implement a blacklist filter, generate random colors, download files, retrieve Alexa/Google page rank, force file downloads, display Gravatars, fetch RSS subscriber counts, calculate time‑ago strings, crop images, and check website availability, streamlining everyday development tasks.

Backend DevelopmentPHPcode snippets
0 likes · 10 min read
Useful PHP Code Snippets for Common Tasks