Download the PHP package liquidrazor/file-locator without Composer

On this page you can find all versions of the php package liquidrazor/file-locator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package file-locator

LiquidRazor File Discovery

A lightweight, high-performance filesystem discovery component for the LiquidRazor ecosystem.

This library provides a deterministic, memory-efficient, and extensible way to locate PHP files across a project using convention-first defaults with optional project-level overrides.

It is the first step in the LiquidRazor pipeline:


Features: Core Capabilities


Default Behavior: Built-In Roots And Exclusions

Out of the box, the discovery system scans:

With automatic exclusions:

Only .php files are considered.


Configuration: Config Sources

1. Default Configuration (Library)

The library ships with an internal configuration:

This defines the baseline discovery rules.


2. Project Override

You can override or extend discovery behavior by adding:

or

Config loading is delegated to liquidrazor/config-loader with YAML selected explicitly. If both config/roots.yaml and config/roots.yml exist, loading fails instead of silently picking one.


Configuration Structure: Supported YAML Shape


Adding Custom Roots: Extending Discovery


Excluding Paths: Global And Root-Specific Rules

Global exclusions:

Root-specific exclusions:


Disabling Default Roots: Removing Built-In Paths


Config Loading Boundary

FileLocator no longer locates config files by full path, reads raw config contents, parses YAML, merges raw config layers, or interpolates environment variables itself.

Those responsibilities now belong to liquidrazor/config-loader.

DiscoveryConfigFactory only:


Merge Strategy: How Config Is Built

Configuration is built as:

The default resource is loaded from resources/config/roots.yaml. The optional project override is loaded from the project config root using the logical name roots.

Raw config merge behavior now follows liquidrazor/config-loader:

After loading, FileLocator still validates the discovery schema and removes disabled roots from the runtime config.


Architecture: Main Layers

The system is intentionally split into layers:

1. Config Layer

2. Discovery Layer

3. Future Layers


Usage: Basic Flow

The locator yields files lazily, ensuring minimal memory usage.


Performance Principles: Traversal Behavior


Safety: Failure And Traversal Controls


Design Philosophy: Implementation Priorities


Role in LiquidRazor: Pipeline Position

This component is the foundation of the DI pipeline:


Notes: Additional Documentation


License: Package Terms

MIT


All versions of file-locator with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
liquidrazor/config-loader Version ^0.1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package liquidrazor/file-locator contains the following files

Loading the files please wait ...