Download the PHP package bitcodesa/nova-label without Composer

On this page you can find all versions of the php package bitcodesa/nova-label. 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 nova-label

Create Labels for Nova Resources with different languages.

Latest Version on Packagist Total Downloads

~~Dynamically Manage Labels for Nova Resources

This document details how to dynamically manage labels for Nova resources using the bitcodesa/nova-label package.

Installation

Install the package using Composer:

Usage

  1. Include ResourceLabel:

In App/Nova/Resource.php, extend the NovaResource class and add the ResourceLabel trait:

  1. Generate Labels:~~

Use the self::attribute() method to generate field labels. This method handles both field name and database attribute:

Optional Parameters:

Specify a different database attribute name:

Return only the attribute title:

  1. Handle Relationships:

For relationship fields, pass the corresponding resource class as the first parameter to self::relation():

Relationship Label Customization:

Similar to field labels, you can customize relationship labels with title and relation parameters:

Change File Name:

you can change file name for any resource by override getLangPath() function:

Change Resource Name:

you can change file name for any resource by override getLangName() function:

Localization

File Structure

Each resource has a dedicated localization file for field and other translations. The file structure should follow:

Create Localization Files

To create a new localization file for a specific resource and language:

For example, to create an Arabic translation file for the Book resource:

This command generates a file at Lang/ar/Book.php. Translate each line in the file according to your needs.

Note: Run php artisan migrate before creating the localization file to ensure all column names are available for translation.

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of nova-label with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^10.0
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^10.0
laravel/nova Version ^4.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 bitcodesa/nova-label contains the following files

Loading the files please wait ....