dflydev/placeholder-resolver
A lightweight PHP library for resolving placeholders such as %key% in strings using array or custom data sources. It supports recursive substitution, nested lookups, and circular-reference detection, making it useful for configuration and templating.
dflydev/placeholder-resolver is a standalone PHP library for recursively resolving %placeholder% tokens in strings and arrays. Originally extracted from Symfony's DependencyInjection component, it decouples resolution from any specific container via a small PlaceholderResolverInterface backed by pluggable data sources, so you can resolve against arrays, configuration, or custom lookups.
PlaceholderResolverDataSourceInterfaceHow can I help you explore Laravel packages today?