Download the PHP package hasanhawary/lookup-manager without Composer

On this page you can find all versions of the php package hasanhawary/lookup-manager. 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 lookup-manager

🔍 Lookup Manager

Latest Stable Version Total Downloads PHP Version

A powerful, lightweight, and framework-friendly Laravel package for unified lookup management. Handle dynamic model lookups, automatic enum discovery, and secure config exposure with ease. Perfect for building dynamic frontend filters, dropdowns, and admin panels.


✨ Features

🏗️ Model Lookup

🔢 Enum Management

🔒 Secure Configuration

🌍 Localization


📦 Installation

The service provider and facade are automatically registered.


⚡ Quick Start

1. Model Lookups

Fetch specific model data with advanced options:

🏷️ Customizing the Display Name ($helpModelName)

By default, the package looks for common name fields (name, title, etc.). You can explicitly define which field(s) should be used as the name in the result by adding a $helpModelName property to your model:

🔗 Automatic Relation Handling (with)

When you request relations using the with key, the package automatically detects and includes the required foreign keys in the database query. This ensures that Laravel can lazy-load or eager-load the relations correctly without you having to manually add the foreign key to the extra fields.

2. Enum Discovery

Fetch enums from anywhere in your app or modules:

3. Config Exposure

Safely expose frontend-required configs:


🛠️ The EnumMethods Trait

Unlock the full power of Enums by adding the trait to your Enum classes:

What you get:


🌐 HTTP API

The package registers these routes automatically by default:

Method Default path Default route name Controller action
GET /api/help-models models HelpController@models
GET /api/help-enums enums HelpController@enums
GET /api/help-configs config HelpController@config

You do not need to define these routes in the host application. Configure route enablement, prefix, middleware, names, and paths in config/lookup.php.

By default the routes use the api prefix and ['api'] middleware. Add your own auth middleware if these endpoints should require authentication.

If the host project already has a route with the same HTTP method and path, or the same route name, Lookup Manager skips only that package route. This prevents the package from taking over an existing project route. You can avoid collisions explicitly by setting a prefix, custom paths, or a route name prefix:

With that config the prepared routes become:

Method Path Route name
GET /lookup/help-models lookup.models
GET /lookup/help-enums lookup.enums
GET /lookup/help-configs lookup.config

Upgrade Note: Route Prefix

The prepared package routes now use the api prefix by default:

If your project still needs the older unprefixed URLs, publish the config and set lookup.routes.prefix to an empty string:


⚙️ Configuration

Publish the config file to define whitelists and root-excluded models:

Root Excluded Models

Automatically apply scopeExcludeRoot to specific models (like Admin/Role) to prevent exposing "root" system records:

Application and Module Namespaces

Laravel projects can usually leave models.namespaces, models.paths, enums.namespaces, and enums.paths empty; the package will infer the application namespace and standard Laravel paths when available.

For custom app structures or modules, configure namespaces explicitly:

Plain PHP Usage

The HTTP routes, FormRequests, Eloquent model lookup, and Laravel config lookup are Laravel features. Core enum helpers and config lookup can be used outside a Laravel application when dependencies are provided explicitly. Laravel-only features return empty results or throw validation exceptions instead of relying on host-project helpers.


✅ Compatibility


📜 License

MIT © Hasan Hawary



All versions of lookup-manager with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1 <8.6
illuminate/support Version ^10.0 || ^11.0 || ^12.0 || ^13.0
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 hasanhawary/lookup-manager contains the following files

Loading the files please wait ...