awesome-repositories.com
Blog
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
nette avatar

nette/utils

0
View on GitHub↗
2,142 stars·153 forks·PHP·0 viewsdoc.nette.org/utils↗

Utils

This project is a general-purpose PHP utility library offering a collection of helper classes and functions for string manipulation, array and collection processing, data validation, filesystem operations, and image processing. It provides foundational toolkits designed to handle common development tasks through standardized APIs.

The library is distinguished by specialized subsystems for programmatic HTML generation and secure element construction, runtime code reflection, and object-oriented utilities such as virtual property management and event callback triggers. It also includes cryptographic random string and token generation, URL slug creation, and advanced UTF-8 text and encoding validation routines.

Additional capabilities cover filesystem management with recursive directory traversal and path normalization, image manipulation supporting canvas creation, watermarking, and format conversion, as well as data parsing for JSON and structured types.

Features

  • Collection Iteration - Transforms, filters, and inspects arrays and iterables using utility methods that simplify common collection operations.
  • PHP Data Collection Libraries - Offers a comprehensive collection of lightweight helper classes for arrays, strings, files, and data validation.
  • Array Access and Modification - Provides a comprehensive set of helper functions for sorting, filtering, merging, and traversing arrays and iterables.
  • JSON Parsing - Parses incoming JSON strings into native data structures while optionally forcing associative array output instead of standard objects.
  • File and Directory Operations - Manages files and directories, searches paths with flexible masks, and performs cross-platform file operations.
  • Text and String Utilities - Provides helper functions for transforming text strings, sorting or filtering arrays, and iterating over collections.
  • Array Key Modifiers - Modifies array keys, renames items, extracts values, and normalizes numeric keys into associative structures.
  • Iterable Transformation Utilities - Creates memory-efficient generators that incrementally filter elements or transform values and keys using callback functions.
  • Complex Data Types - Parses and represents complex programming language types including scalars, objects, and unions.
  • Iterable Value Searchers - Searches an iterator for a specific value or key using strict comparison and returns a boolean result indicating if a match exists.
  • Iterator Element Retrievers - Returns the initial element or key from an iterator, optionally matching a predicate or falling back to an alternative result.
  • JSON Serializers - Serializes data structures into valid JSON strings using options for pretty printing, ASCII safety, and HTML escaping.
  • Image Processing and Manipulation - Resizes, crops, scales, and converts raster graphic formats programmatically using standard graphics libraries.
  • PHP Image Processing - Provides raster image manipulation supporting creation, resizing, cropping, watermarking, and saving in PHP.
  • Complex Array Handlers - Sorts, filters, flattens, and merges data collections using concise syntax and helper utility methods.
  • Caching Iterators - Wraps iterators or factory functions to allow repeated traversal of data sources that otherwise support only a single iteration pass.
  • Character Encoding Utilities - Detects invalid UTF-8 sequences, strips malformed characters, and converts encodings.
  • Undefined Member Interceptions - Intercepts reads to undefined properties and throws descriptive exceptions instead of failing silently.
  • Object Collection Management - Provides specialized object wrappers treating standard lists with array-like syntax and automatic reindexing.
  • File Read and Write Operations - Opens, reads, writes, and streams files with automatic parent directory creation and optional atomic writing.
  • Iterable Normalization - Converts arrays and traversable structures into a standardized iterator to ensure consistent handling across input types.
  • Array Filtering Methods - Filters, sorts, flattens, and transforms arrays and iterables with helper methods.
  • Array Transformation Utilities - Provides utility functions to filter, map, flatten, associate, and test elements within arrays using callbacks and paths.
  • Property Access Control - Exposes class data through virtual properties backed by getter and setter methods.
  • Random String Generation - Produces secure random strings and slugs for use as tokens, identifiers, or passwords.
  • Token Generation - Produces cryptographically secure random tokens, identifiers, and strings for authentication and security tokens.
  • Data Schema Validation - Checks input values and verify data types against expected schemas to ensure data integrity.
  • Data Type Validation - Checks variables against type constraints and expected schemas to ensure data integrity.
  • Event Callbacks - Invokes registered listener callbacks sequentially when object states change.
  • Iterator Condition Evaluators - Checks whether all or some elements in an iterator satisfy a given condition callback and return a boolean outcome.
  • String Manipulators - Performs UTF-8 string transformations, case conversion, slug generation, and encoding validation.
  • String Manipulation - Transforms, searches, and normalizes text data with support for Unicode, encoding validation, and slug generation.
  • XML and HTML Element Constructors - Represents HTML elements as objects with customizable names, attributes, and child nodes while escaping content automatically.
  • Programmatic HTML Generators - Constructs clean and secure HTML markup programmatically using object-oriented syntax to prevent injection vulnerabilities.
  • Slug Generators - Converts UTF-8 strings into URL-friendly slugs by removing diacritics and replacing invalid characters.
  • File and Directory Moves - Copies, renames, or moves files and entire directories with optional collision handling to prevent accidental overwriting.
  • Reflection and Metadata - Analyzes code structures, comments, namespaces, traits, and types using reflection helpers that extend standard language introspection.
  • Text Manipulation - Transforms and analyzes text data through operations like encoding conversion, case shifting, and slicing.
  • File and Image Handling - Handles file system operations and image processing tasks like resizing, cropping, and saving raster graphics.
  • Iterator-Based Pagination - Calculates pagination ranges and provides helper functions to traverse and manipulate complex iterables.
  • Directory Management - Creates directories recursively as needed and deletes paths including non-empty directory contents automatically.
  • Callable Value Validators - Validates whether a given value constitutes a proper callable structure and optionally verifies its actual existence in the runtime environment.
  • Callable Signatures - Converts callables to textual representations and inspects their underlying methods or functions through standard reflection objects.
  • Regular Expression Libraries - Splits, matches, searches, and replaces text using regular expressions with Unicode support.
  • Callable Scope Analyzers - Determines whether a given callback points to a global function or a static method rather than an object instance.
  • Class Name Parsers - Separates a fully qualified class identifier into its namespace and short name components.
  • Closure Unwrappers - Extracts the original callable array or string representation from closures previously created from existing callables.
  • Path Normalizers - Joins, normalizes, resolves, and converts file paths and slashes for cross-platform compatibility and validation.
  • Safe Function Invokers - Invokes native functions while capturing emitted warnings and errors through a custom handler to react to runtime issues.
  • Case-Insensitive Comparators - Measures UTF-8 character length, checks prefixes and suffixes, and compares text case-insensitively.
  • Substring Extraction Methods - Retrieves specific segments around delimiters or character positions, including text before or after occurrences.
  • Element Content Swapping - Populates, retrieves, and traverses inner content and child nodes using methods supporting text, raw HTML, and nested elements.
  • Output Capture Utilities - Executes target functions and collects generated standard output or return values as readable strings.
  • HTML Attribute Bindings - Sets, updates, and retrieves HTML attributes, styles, and data attributes using properties, method chaining, or bulk arrays.
  • HTML Response Renderers - Outputs HTML elements or fragments as strings with optional indentation for pretty printing or separate rendering of tags.
  • Limit Offset Pagination - Computes page offsets, limits, and navigation boundaries to split large datasets into manageable pages.

Star history

Star history chart for nette/utilsStar history chart for nette/utils

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Curated searches featuring Utils

Hand-picked collections where Utils appears.
  • Developer search query

Open-source alternatives to Utils

Similar open-source projects, ranked by how many features they share with Utils.
  • duke-git/lancetduke-git avatar

    duke-git/lancet

    5,295View on GitHub↗

    Lancet is a comprehensive extension of the Go standard library, providing a collection of reusable functions and data structures designed to reduce boilerplate code in applications. It serves as a general-purpose toolkit across multiple domains, including concurrency, security, networking, and functional logic. The project distinguishes itself through specialized toolkits for Go concurrency, such as keyed locking and channel-based stream processing, and a dedicated functional programming kit that supports currying and function composition. It also includes a dedicated cryptography library imp

    Gogenericsgogolang
    View on GitHub↗5,295
  • jashkenas/underscorejashkenas avatar

    jashkenas/underscore

    27,345View on GitHub↗

    Underscore is a JavaScript utility library providing a suite of functional programming and data manipulation helpers. It serves as a framework for transforming data collections, composing functions, managing objects, and performing precise data type validation without modifying core language prototypes. The project includes a functional programming toolkit designed to control function execution timing and behavior through techniques such as debouncing, throttling, and partial application. It also provides a dedicated object manipulation utility for cloning, merging, picking, and omitting prop

    JavaScript
    View on GitHub↗27,345
  • msgspec/msgspecmsgspec avatar

    msgspec/msgspec

    3,821View on GitHub↗

    msgspec is a high-performance data modeling, serialization, and schema validation toolkit for Python. It serves as a type-safe serialization framework that integrates schema enforcement and data parsing into a single pass, functioning as both a data serialization library and a schema validation system based on standard Python type annotations. The project distinguishes itself through high-performance structural primitives, including compilation-based routine generation and zero-copy buffer parsing. It optimizes memory usage via garbage collection-aware layouts and reduces processing overhead

    Pythondeserializationjsonjson-schema
    View on GitHub↗3,821
  • laochiangx/common.utilitylaochiangx avatar

    laochiangx/Common.Utility

    5,304View on GitHub↗

    Common.Utility is a general purpose utility library providing a collection of helper classes for common programming tasks. It functions as a data security framework, a database access wrapper, and a suite of tools for system administration and network communication. The library includes a multimedia processing suite for generating barcodes and QR codes, editing images, and converting video formats. It also provides a network communication toolkit for managing HTTP requests and FTP transfers, as well as integration with email and notification services. The project covers a broad set of capabi

    C#chmcommoncookiehelper
    View on GitHub↗5,304
See all 30 alternatives to Utils→

Frequently asked questions

What does nette/utils do?

This project is a general-purpose PHP utility library offering a collection of helper classes and functions for string manipulation, array and collection processing, data validation, filesystem operations, and image processing. It provides foundational toolkits designed to handle common development tasks through standardized APIs.

What are the main features of nette/utils?

The main features of nette/utils are: Collection Iteration, PHP Data Collection Libraries, Array Access and Modification, JSON Parsing, File and Directory Operations, Text and String Utilities, Array Key Modifiers, Iterable Transformation Utilities.

What are some open-source alternatives to nette/utils?

Open-source alternatives to nette/utils include: duke-git/lancet — Lancet is a comprehensive extension of the Go standard library, providing a collection of reusable functions and data… jashkenas/underscore — Underscore is a JavaScript utility library providing a suite of functional programming and data manipulation helpers.… msgspec/msgspec — msgspec is a high-performance data modeling, serialization, and schema validation toolkit for Python. It serves as a… laochiangx/common.utility — Common.Utility is a general purpose utility library providing a collection of helper classes for common programming… more-itertools/more-itertools — more-itertools is an extension library for the Python itertools module. It serves as a toolkit for manipulating… adambard/learnxinyminutes-docs — This project is a collection of programming language references and syntax cheat sheets designed for rapid developer…