Download the PHP package isahaq/barcode without Composer
On this page you can find all versions of the php package isahaq/barcode. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download isahaq/barcode
More information about isahaq/barcode
Files in isahaq/barcode
Package barcode
Short Description A universal barcode generator package supporting 32+ barcode types and multiple output formats (PNG, SVG, HTML, JPG, PDF), with batch generation, validation, CLI, and full Laravel integration.
License MIT
Homepage https://github.com/isahaq1/barcodeGeneratorPkg
Informations about the package barcode
๐ Isahaq Barcode Generator
A universal barcode generator package supporting 32+ barcode types (linear, 2D, postal, stacked, and auto-detection variants), multiple output formats, CLI, and full Laravel integration (Service Provider & Facade).
Generate barcodes of any type, in any format, anywhere. Perfect for e-commerce, inventory management, ticketing, and more.
๐ Features
- 32+ Barcode Types: Linear, 2D, postal, stacked, and auto-detection variants
- Multiple Output Formats: PNG, SVG, HTML, JPG, PDF
- Laravel Integration: Service Provider and Facade support
- CLI Tool: Command-line interface for quick barcode generation
- QR Code Builder: Fluent API for advanced QR code generation
- Batch Generation: Generate multiple barcodes efficiently
- Validation: Built-in data validation for different barcode types
- Customization: Size, colors, margins, and more options
- No External Dependencies: Pure PHP implementation
- Well-Tested: Comprehensive test suite included
๐ฆ Installation
Via Composer
Requirements
- PHP 8.0 or higher
- ext-mbstring extension
- For Laravel: Illuminate/Support 8.0+ (automatically included if using Laravel)
๐ง Why Use This Package?
- Comprehensive Support: 32+ barcode types including industry standards and auto-detection
- Multiple Formats: Generate barcodes in PNG, SVG, HTML, JPG, and PDF
- Laravel Ready: Seamless integration with Laravel framework
- CLI Support: Generate barcodes from command line
- Advanced QR Codes: Customizable QR codes with logos and labels
- Validation: Built-in data validation for each barcode type
- Performance: Optimized for high-volume generation
- Extensible: Easy to add new barcode types and renderers
โก Laravel Setup for Older Versions
If you are using an older version of Laravel (before package auto-discovery), add the service provider and facade alias manually in your config/app.php:
๐ Supported Barcode Types (32+ Types)
Linear Barcodes
- Code128 (A, B, C, Auto)
- Code39 (Standard, Checksum, Extended, Auto)
- Code93
- Code25 (Standard, Auto)
- Code32 (Italian Pharmacode)
- Standard25 (Standard, Checksum)
- Interleaved25 (Standard, Checksum, Auto)
- MSI (Standard, Checksum, Auto)
EAN/UPC Family
- EAN13, EAN8, EAN2, EAN5
- UPC-A, UPC-E
- ITF14
Postal Barcodes
- POSTNET, PLANET, RMS4CC, KIX, IMB
Specialized Barcodes
- Codabar, Code11, PharmaCode, PharmaCodeTwoTracks
2D Matrix Codes
- QRCode, DataMatrix, Aztec, PDF417, MicroQR, Maxicode
Stacked Linear Codes
- Code16K, Code49
๐ ๏ธ Quick Usage Examples
Basic Barcode Generation
Laravel Usage (with Facade)
Display Barcode as HTML Image
Batch Generation
Validation
CLI Usage
๐ Documentation
Full documentation available at docs/ directory:
- Installation Guide
- API Reference
- Barcode Types
- Output Formats
- Laravel Integration
- Examples
๐งช Testing
Run the test suite:
Test coverage includes:
- Barcode type encoding validation
- Renderer output formats
- Laravel integration tests
- Batch generation
- Data validation
๐ค Contributing
We welcome contributions! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Write or update tests
- Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Contribution Guidelines
- Follow PSR-12 coding standards
- Write unit tests for new features
- Update documentation as needed
- Ensure all tests pass before submitting
๐ License
This package is licensed under the MIT License. See the LICENSE file for details.
๐ Bug Reports & Feature Requests
Found a bug or have an idea? Open an issue on GitHub.
๐ฌ Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: [email protected]
๐ Barcode Types Reference
| Type | Example | Best For |
|---|---|---|
| Code128 | ABC123 |
General purpose, high data density |
| Code39 | ABC-123 |
Alphanumeric, inventory |
| EAN13 | 5901234123457 |
Retail products (13 digits) |
| EAN8 | 96385074 |
Small products (8 digits) |
| QR Code | Any data | URLs, contact info, product data |
| DataMatrix | Any data | Small spaces, pharmaceutical |
| PDF417 | Large data | IDs, documents, certificates |
๐ Acknowledgments
- Built with PHP 8.0+
- Inspired by industry-standard barcode specifications
- Thanks to all contributors and users
๐ Changelog
See CHANGELOG.md for version history and updates.
Made with โค๏ธ by Isahaq
๐ ๏ธ Usage
Basic PHP Usage
Display Barcode as Base64 Image (PNG)
QR Code with Logo and Watermark
Using the Service Class
QR Code Builder (Advanced)
๐ฏ Laravel Integration
Using Laravel Facade
QR Code with Logo (Laravel Facade)
Available Watermark Positions
Using Service Provider
Blade Templates & Routes
๐ฅ๏ธ CLI Usage
๐ Advanced Features
- Batch Generation
- Custom Renderer Options
- Validation
- Auto-detection: Use
code128auto,code39auto,code25auto,interleaved25auto, `
All versions of barcode with dependencies
ext-mbstring Version *
illuminate/support Version ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0