- How do I install AvalynxTable with Composer?
- Run composer require avalynx/avalynx-table in your project root. In Laravel, you can then use the package's API in controllers or Blade views to build tables. Check the package's composer.json for any additional setup steps or suggested Bootstrap asset requirements.
- Does AvalynxTable require Bootstrap?
- Yes, AvalynxTable leverages Bootstrap 5.3 or higher for its styling and responsive breakpoint behavior. You should include Bootstrap CSS in your Laravel layout or plain PHP template to get the intended table appearance. The package itself is lightweight and dependency-free for table logic, but Bootstrap is the visual foundation.
- How do I create a dynamic HTML table with AvalynxTable?
- Instantiate the table with your data and define the columns you want to display. The package provides a simple API for configurable columns, sorting, pagination, and clean HTML output. You can then render that output in a Blade view or plain PHP template.
- Can I sort and paginate data in AvalynxTable?
- Yes, AvalynxTable supports sorting and pagination as configurable table features. You enable or configure them through the table API when building the table. For large datasets, use pagination to keep rendering and page load times reasonable.
- How do I customize columns in AvalynxTable?
- Columns are configurable through the package API, so you can define labels, data mappings, and display behavior. You can also apply your own CSS classes to the generated table markup to match your Laravel application's design. Refer to the package documentation for the exact column configuration methods.
- Which Laravel versions does AvalynxTable support?
- The provided package context does not include a specific Laravel version matrix. AvalynxTable is a Composer package intended to fit into Laravel applications, but you should check its composer.json requirements for the exact Laravel and PHP versions supported by your release. Test against your application's Laravel version before upgrading.
- Can I use AvalynxTable without Laravel?
- Yes, AvalynxTable is a PHP package that can be used in plain PHP applications as well as Laravel. You still need to include Bootstrap 5.3 or higher assets for the responsive table styling. Install it via Composer and call its API directly from your PHP templates.
- How does AvalynxTable handle responsive table layouts?
- AvalynxTable uses Bootstrap's responsive breakpoints; when the table's breakpoint is reached, rows and columns stack on top of each other. This creates an easily readable view on smaller screens without requiring a separate mobile table implementation. You configure the breakpoint as part of the table setup.
- How do I test AvalynxTable output in a Laravel application?
- Render a table in a test route or view and assert the generated HTML contains the expected headers, row data, sorting links, and pagination markup. Because AvalynxTable outputs clean HTML, Laravel's HTTP or view test assertions can verify the structure. You can also unit test your column configuration and data mapping separately.
- What should I consider before using AvalynxTable in production?
- Ensure Bootstrap 5.3 or higher is included and test the responsive stacking at your chosen breakpoint. Use pagination for large datasets and pin a stable package version in composer.json. For advanced needs like AJAX loading or inline editing, compare alternatives such as DataTables or Laravel Livewire tables; also review the package's release activity for maintenance.