Download the PHP package ed9/laravel-date-directive without Composer

On this page you can find all versions of the php package ed9/laravel-date-directive. 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 laravel-date-directive

Laravel Date Directive

Overview:

Laravel Date Directive is a comprehensive Laravel library designed to address persistent challenges related to site content, user interactions, and regional settings. It facilitates the seamless presentation of date and time elements based on user timezones. This library extends on-top of the laravel-readable library.

Installation:

To integrate the library into your Laravel project, use Composer:

Configuration:

To customize the library behavior, publish the configuration file:

Configuration options include:

Key Type Description
always_show_seconds boolean When the library outputs time, it includes seconds if set to true.
timezone string A valid timezone name; refer to the list of supported timezones.
string_format string Supports \Carbon\Carbon or string input; if string is used, it must match the configured format.
use_12_hour_clock boolean When the library outputs time, it displays the time in 12-hour format if set to true, or 24-hour format if set to false.

Setup:

Configure the system default settings in the configuration file. Optionally, configure per-user settings by adding timezone and other configuration items to your users table. Update the \App\Http\Middleware\Authenticate::class by extending the boot method, overriding the library configuration during runtime.

Usage:

In Blade Templates:

Directive Arguments Output
@time \Carbon\Carbon, string Outputs the time of the input in the configured timezone.
@date \Carbon\Carbon, string Outputs the date of the input in the configured timezone.
@dateTime \Carbon\Carbon, string Outputs the date and time of the input in the configured timezone.

Example:

In PHP Code:

If you need access to the formatted and converted values in your PHP code, use the \Ed9\LaravelDateDirective\Handler:

Available Methods via Handler:


All versions of laravel-date-directive with dependencies

PHP Build Version
Package Version
Requires pharaonic/laravel-readable Version ^1.0
illuminate/support Version *
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 ed9/laravel-date-directive contains the following files

Loading the files please wait ....