Download the PHP package hdaklue/naptab without Composer

On this page you can find all versions of the php package hdaklue/naptab. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package naptab

NapTab

Latest Version on Packagist Total Downloads GitHub Tests Action Status

Stop waiting. Start loading smart.

Transform your Laravel applications with intelligent tabbed navigation that only loads what users actually need. NapTab eliminates the performance bottleneck of traditional tabs by implementing true lazy loading - heavy database queries and expensive operations execute only when users click tabs, not during initial page load.

Featuring an innovative dual-level content hooks system that lets you inject content both around individual tabs and the entire container, plus flexible layout directions including modern aside/sidebar layouts for professional dashboard-style interfaces.

The result? 4x faster page loads, unprecedented customization, and happier users.

Table of Contents

Why Developers Choose NapTab

The Performance Problem

Traditional tab implementations load all content immediately, creating unnecessary database queries and bloated page loads. Your users wait longer, your servers work harder, and your application feels sluggish.

The NapTab Solution

True Lazy Loading Architecture: Each tab remains "asleep" until clicked, eliminating wasted resources and dramatically improving perceived performance.


Key Benefits & Performance Impact

🎯 Dual-Level Content Hooks System (UNIQUE)

⚡ Instant Performance Gains

📱 Mobile-Optimized Experience


Mobile-optimized interface with smooth animations and touch-friendly navigation

🌐 Global-Ready

🔗 SEO & UX Friendly

🎨 Production-Ready Theming

🔧 Laravel Ecosystem Integration

Real-World Performance Impact

Before vs After NapTab

Metric Traditional Tabs With NapTab Improvement
Initial Page Load 340ms 80ms 4x faster
Database Queries All tabs loaded Only active tab 75% reduction
Memory Usage All components active Lazy instantiation 60% lighter
Time to Interactive 800ms 200ms 4x faster

Why This Matters for Your Business

Technical Performance Features

Get Started in 2 Minutes

1. Install NapTab

The install command automatically:

2. Create Your First Tab Component

Generate a new tabbed component extending NapTab:

3. Add to Your Blade Template

🎉 That's It!

Your tabs are now intelligently lazy-loaded with powerful content hooks:


Perfect for Your Use Case

✅ Dashboard Applications

✅ E-commerce Platforms

✅ Content Management

✅ FilamentPHP Integration


Revolutionary Content Hooks System

The game-changing feature that sets NapTab apart from every other Laravel tab solution.

NapTab introduces an innovative dual-level content hooks system that gives you unprecedented control over content placement - something no other Laravel tab package offers. Inject headers, statistics, alerts, or any content exactly where you need it.

Dual-Level Architecture

Container-Level Hooks: Add content around the entire tabs container Tab-Level Hooks: Add content around individual tab content

Content Hook Types & Examples

All hook methods support multiple content types:

Container-Level Examples

Tab-Level Examples

Real-World Use Cases for Content Hooks

E-commerce Product Tabs

Admin Dashboard Sections

Multi-step Forms

Why Content Hooks Are Revolutionary

Before NapTab Hooks:

With NapTab Hooks:

Performance Benefits of Content Hooks


Advanced Usage & API Reference

Flexible Content Loading Strategies

NapTab gives you complete control over how and when tab content loads. Choose the approach that best fits your use case:

Layout Direction Control

Transform Your Tab Interface with Intelligent Layout Options

NapTab adapts to your design needs with flexible layout directions that automatically optimize for different screen sizes and use cases.

Available Direction Options

Layout Behaviors

Direction::Horizontal (Default)

Direction::Aside (Responsive Sidebar)

Why Use Aside Layout?

Tab API Methods

All Tab methods are chainable and accept either static values or closures for dynamic behavior.

Core Configuration

Access Control

Content Definition

Content Hooks

Lifecycle Hooks

Tab Content Methods

1. Controller Methods (Best for Dynamic Content)

2. Direct Content

3. Blade Views

4. Livewire Components

Dynamic Badges & Content Examples

Professional Theming & Configuration

Production-Ready Visual Customization

Transform your tabs to match your brand with professionally designed themes and granular customization options:

Available Configuration Methods

Core Configuration

Badge Configuration

Content & Mobile

Preset Styles

Each preset applies multiple settings for a cohesive design:

Modern Style

Minimal Style

Sharp Style

Pills Style

Configuration Caching

NapTab automatically caches configuration settings for optimal performance in production environments.

How Caching Works

Performance Benefits

Cache Management

The configuration cache is automatically managed:

Clearing Cache (Development)

If you modify your configuration during development:

Installation Guide

1. Install Package

2. Install Assets & Configuration

This command will:

3. Include CSS Assets

Add to your main layout file:

4. Add Service Provider (Auto-added by install command)

Mobile Navigation

NapTab provides intelligent mobile navigation that adapts to device capabilities:

Scroll Navigation (Default)

Modal Navigation (Optional)

URL Routing

Enable URL routing to make tabs bookmarkable and SEO-friendly:

1. Enable Routing Per Component

2. Add Route Parameter

3. Flexible Routing Control

Now you have complete control over which components use routing:

4. Automatic Navigation

For routable components, NapTab automatically:

CSS Customization

Published CSS Files

The naptab:install command publishes two CSS files:

public/vendor/naptab/naptab.css - Core component styles

public/vendor/naptab/naptab-safelist.css - Tailwind color safelist

Custom Colors

To add custom colors, update the safelist file:

Why Laravel Developers Love NapTab

Built for Modern Laravel Development

Developer Experience First

Community Trusted


Contributing & Support

Found a Bug or Have a Feature Request?

We welcome contributions! Please check our GitHub repository for:

Need Help?

Testing

Run the package test suite:

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.

Credits


Ready to Transform Your Laravel Application?

Stop settling for basic tabs. Start building professional interfaces that your users will love.

NapTab is the only Laravel tab package that combines blazing-fast performance with unprecedented customization through our revolutionary dual-level content hooks system. Join thousands of developers who have transformed their applications with intelligent tab navigation.

What You Get With NapTab

✅ Performance: 4x faster page loads through true lazy loading
✅ Innovation: Dual-level content hooks (unique to NapTab)
✅ Flexibility: Multiple layout directions and responsive design
✅ Quality: Production-tested with comprehensive error handling
✅ Support: Active maintenance and Laravel community integration

Start Building Today

Transform your tabs in under 2 minutes:
composer require hdaklue/naptab
php artisan naptab:install

Your users deserve faster, smarter navigation.

All versions of naptab with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/contracts Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
livewire/livewire Version ^3.0
blade-ui-kit/blade-heroicons Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hdaklue/naptab contains the following files

Loading the files please wait ...