Download the PHP package manialab/maniaprintlab without Composer
On this page you can find all versions of the php package manialab/maniaprintlab. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download manialab/maniaprintlab
More information about manialab/maniaprintlab
Files in manialab/maniaprintlab
Package maniaprintlab
Short Description Provides three Nova resources for managing badge configurations, badge detail settings, and print history
License MIT
Informations about the package maniaprintlab
ManiaLab/ManiaPrintLab
ManiaPrintLab is a drop-in Laravel Nova package that provides:
- Badge Details resource to define layout settings for all badge elements
- Printing Records resource with shortcode generation and one-click print buttons
- Print Badges menu tool that loads your legacy print page via an external route
- Publishable migrations for the
maniaprintlab_configurations,badges_details, andprintingtables
Requirements
- PHP ^8.0
- Laravel Nova ^4.0
Installation
Manual Integration (if using a custom Nova menu)
If you maintain your own NovaServiceProvider with a custom mainMenu, add:
Usage
-
Open Nova You will see a PrintLab section with:
- Badge Details: define field positions, sizes, and display flags
- Printing Records: view history, copy a
[maniaprint ...]shortcode, or click Print - Print Badges menu tool: opens your legacy
index.phpprint page
-
Create a Configuration profile, then add one or more Badge Details entries.
-
Generate or import Printing Records. On the index:
- Shortcode column: copy and embed the badge link elsewhere
- Print column: click the button to open the print page in a new tab
Adding Print Button to Visitor Nova Resource
To add a Print button to your custom Visitor Nova resource, edit app/Nova/Visitor.php:
-
Import the
Textfield at the top: -
Append the Print button to
fields(): - Clear & rebuild caches:
Contributing
Pull requests welcome! Please adhere to PSR-12 standards and add tests for new features.
License
This package is open-source under the MIT License.