Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laravel-admin-extensions/watermark
https://github.com/laravel-admin-extensions/watermark
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/laravel-admin-extensions/watermark
- Owner: laravel-admin-extensions
- License: mit
- Created: 2020-06-22T09:38:42.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-25T08:28:28.000Z (almost 4 years ago)
- Last Synced: 2024-10-27T21:15:50.432Z (about 2 months ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-laravel-admin - watermark - 网页水印 (扩展包 / 视图类扩展包)
README
# Watermark for laravel-admin
Add Text Watermark in Laravel-admin web page.
## ScreenShot
## Install
```bash
composer require jxlwqq/watermark
```## Configurations
Add `extensions` option in your `config/admin.php` configuration file:
```php
'extensions' => [
'watermark' => [
'enable' => true,
'config' => [
'content' => 'username', // Admin::user()->username, or Admin::user()->name or fixed value like 'internal info'
'width' => '100px',
'height' => '120px',
'textAlign' => 'left',
'textBaseline' => 'alphabetic',
'font' => '15px Times New Roman',
'fillStyle' => 'rgba(204,204,204,0.4)',
'rotate' => 30,
'zIndex' => 1000,
]
]
]
```## Reference
* [前端水印生成方案](https://musicfe.cn/page/15)
## More resources
[Awesome Laravel-admin](https://github.com/jxlwqq/awesome-laravel-admin)
## License
Licensed under [The MIT License (MIT)](LICENSE).