https://github.com/gabrielesbaiz/nova-html-card
A Laravel Nova card that displays any html content.
https://github.com/gabrielesbaiz/nova-html-card
laravel-nova-card laravel-package php
Last synced: 4 months ago
JSON representation
A Laravel Nova card that displays any html content.
- Host: GitHub
- URL: https://github.com/gabrielesbaiz/nova-html-card
- Owner: gabrielesbaiz
- License: mit
- Created: 2025-03-03T04:13:26.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-03-03T04:49:34.000Z (4 months ago)
- Last Synced: 2025-03-03T05:26:43.768Z (4 months ago)
- Topics: laravel-nova-card, laravel-package, php
- Language: PHP
- Homepage:
- Size: 149 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
#
[](https://packagist.org/packages/gabrielesbaiz/nova-html-card)
[](https://packagist.org/packages/gabrielesbaiz/nova-html-card)A Laravel Nova card that displays any html content.
Original code from [abordage/nova-html-card](https://github.com/abordage/nova-html-card)
## Features
- ✅ HTML content in Nova card
- ✅ Variable height## Installation
You can install the package via composer:
```bash
composer require gabrielesbaiz/nova-html-card
```## Usage
To create a cards use the `artisan` command:
```bash
php artisan nova-html-card MyHtmlCard
``````php
$novaHtmlCard = new Gabrielesbaiz\NovaHtmlCard();
echo $novaHtmlCard->echoPhrase('Hello, Gabrielesbaiz!');
```By default, all new cards will be placed in the `app/Nova/Cards` directory. Once your html card class has been generated,
you're ready to customize it.```php
Some content';
}
}```
If set `$height = 'fixed'` content will scroll.
## Testing
```bash
composer test
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Pavel Bychko](https://github.com/abordage)
- [Gabriele Sbaiz](https://github.com/gabrielesbaiz)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.