Download the PHP package kraenzle-ritter/resources-components without Composer

On this page you can find all versions of the php package kraenzle-ritter/resources-components. 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 resources-components

Resources Components for Laravel

Tests codecov

Search for entities in authority databases and link them with your local data using Livewire components. This package provides a seamless integration with various data providers to enhance your Laravel application with external resources.

Supported Providers

Requirements

Installation

Via Composer:

After installation, you can publish various assets:

Configuration

Publish the configuration file to customize provider settings:

This will create config/resources-components.php where you can:

Language Files

Publish translation files for customization:

All Assets

Publish everything at once:

Testing

This package includes comprehensive tests to ensure proper functionality of all providers. Run the tests with:

Basic Usage

In your views, use the components like this:

Where:

Configuration

The package comes with a pre-configured setup for various providers. After publishing the configuration file (see Installation), you can customize provider settings in config/resources-components.php:

Provider Configuration Options

Each provider supports the following configuration options:

Additional provider-specific options may apply (e.g., user_name for Geonames, api_token for Anton providers).

Creating Custom Providers

You can create your own provider by implementing the ProviderInterface or extending the AbstractProvider class:

  1. Create a provider class:

  2. Register your provider in the configuration:

Customizing Views

You can publish and customize the views:

Handling Resource Events

The components fire an event (ResourceSaved) when saving a resource. You can define and register a listener in your app:

Register your listener in EventServiceProvider.php:

Configuration

Environment Variables

Some providers require additional configuration in your .env file:

Model Requirements

Your models must:

  1. Use the HasResources trait from the kraenzle-ritter/resources package
  2. Have either a resource_search attribute or a name attribute (used as default search term)

Creating Custom Providers

To create a new provider, you need:

  1. A provider class that implements the search functionality
  2. A Livewire component class for the UI interaction
  3. Configuration in the resources-components.php file

See the documentation or existing providers for implementation details.

License

MIT. Please see the license file for more information.


All versions of resources-components with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
laravel/framework Version ^11.0
guzzlehttp/guzzle Version ^7.8
livewire/livewire Version ^3.4
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 kraenzle-ritter/resources-components contains the following files

Loading the files please wait ....