dcblogdev/laravel-tags

A Laravel package for adding tags to your content

v1.0.0 2023-11-11 16:04 UTC

This package is auto-updated.

Last update: 2024-12-11 18:56:11 UTC


README

Explain what the package does.

Installation

You can install the package via composer:

composer require dcblogdev/laravel-tags

Usage

The following tags are available:

  • [year] = will be replaced with the current year
  • [appName] = will be replaced with the app name from the config file
  • [youtube url width=560 height=360] = will return a YouTube embed code. Width and height are option by default they are 560 and 360

Import the facade

use Dcblogdev\Tags\Facades\Tags;

Example usage:

$content = "This is a post about [year] and [appName]";
$content = Tags::get($content);

echo $content

Would print

This is a post about 2023 and Laravel

Change log

Please see the changelog for more information on what has changed recently.

Contributing

Contributions are welcome and will be fully credited.

Contributions are accepted via Pull Requests on Github.

Pull Requests

  • Document any change in behaviour - Make sure the readme.md and any other relevant documentation are kept up-to-date.

  • Consider our release cycle - We try to follow SemVer v2.0.0. Randomly breaking public APIs is not an option.

  • One pull request per feature - If you want to do more than one thing, send multiple pull requests.

Security

If you discover any security related issues, please email dave@dcblog.dev email instead of using the issue tracker.

License

license. Please see the license file for more information.