Download the PHP package artificertech/blade-time-elements without Composer
On this page you can find all versions of the php package artificertech/blade-time-elements. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download artificertech/blade-time-elements
More information about artificertech/blade-time-elements
Files in artificertech/blade-time-elements
Package blade-time-elements
Short Description A blade implementation of the github/time-elements package
License MIT
Homepage https://github.com/artificertech/blade-time-elements
Informations about the package blade-time-elements
BladeTimeElements
This package is a blade wrapper arrount the github/time-elements package. This package provides blade components and a blade directive to easily utilize the time-elements in your laravel project. Take a look at contributing.md to see a to do list.
Installation
Via Composer
Usage
Include the time elements javascript in your project. You may place do so by utilizing the following blade directive in your application's layout file:
or you may see the github/time-elements documentation to include the script via npm
After the script is included you may use any of the following blade components to render a time element. The datetime
property accepts an ISO 8601 formatted timestamp string or a \Carbon\Carbon
instance
you may also pass any additional attributes to the components that will be added to the html elements. For a full list of what attributes are accepted for each element see the github/time-elements documentation.
each component also has a nullable default slot.
Livewire
If you use time-elements inside of a livewire context you may run into issues where the time elements do not work after livewire re-renders the page. To solve this each time element includes the wire:replace functionality (made possible by the https://github.com/archtechx/wire-replace package)
Follow the instructions here to install that package via npm or the CDN
Change log
Please see the changelog for more information on what has changed recently.
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Cole Shirley
- All Contributors
License
MIT. Please see the license file for more information.