Download the PHP package liquidrazor/class-locator without Composer

On this page you can find all versions of the php package liquidrazor/class-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 class-locator

LiquidRazor ClassLocator

A minimal PHP 8.3+ library for deterministic class discovery and validation.


What it does

That’s it.


Philosophy


Dependency Model

ClassLocator is built on top of:

It does NOT define roots.
It consumes whatever FileLocator provides.


Namespace Resolution

ClassLocator does NOT detect namespaces for discovery.

Instead:

  1. Namespace roots are loaded from the target project's composer.json (PSR-4)
  2. File paths are mapped deterministically to expected FQCN
  3. Namespace parsing is used for validation and structural metadata extraction when enabled by mode

Filesystem + Composer define expectation.
Files must comply.


Modes

ENFORCING (default)

STRICT

LENIENT


Validation

Validation compares:

expected (path + composer)
vs
actual (file namespace + symbol)

Detects:


Usage


Public API

ClassLocator

Mode (enum)

LocateResult

SymbolKind (enum)

SymbolKind::CLASS_ uses a trailing underscore because CLASS collides with PHP's ::class constant syntax.

ClassInfo

In ENFORCING and STRICT, ClassInfo metadata is derived from the declared symbol in the source file.

In LENIENT, declaration parsing is skipped, so:

Violation


Example: Inspect Structural Metadata


Responsibility Boundary

ClassLocator exposes structural symbol metadata.

It still does NOT:

Downstream tools may use the exposed metadata for their own classification or validation logic.


Summary

Give it a FileLocator.

It gives you deterministic classes, structural violations, and source-derived symbol metadata when validation is enabled.


All versions of class-locator with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
liquidrazor/file-locator Version ^v0.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/class-locator contains the following files

Loading the files please wait ...