Download the PHP package mikailfaruqali/invoice-template without Composer

On this page you can find all versions of the php package mikailfaruqali/invoice-template. 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 invoice-template

Laravel Invoice Template Package

Latest Version on Packagist Total Downloads License

A powerful Laravel package for generating professional PDF invoices with customizable templates. Features advanced header/footer support, multi-language capabilities, and a comprehensive template management system powered by wkhtmltopdf via Snappy PDF generator.

Features

🎨 Template Management

📄 PDF Generation

🌐 Internationalization

⚙️ Advanced Configuration

🔒 Security

Installation

Requirements

Step 1: Install the Package

Step 2: Install wkhtmltopdf

Windows

Download and install wkhtmltopdf from official website

Ubuntu/Debian

CentOS/RHEL

Step 3: Publish Assets

This will publish:

Step 4: Run Migrations

Step 5: Configure wkhtmltopdf Binary Path

Edit config/snawbar-invoice-template.php:

Configuration

Basic Configuration

Advanced PDF Options

Usage

Template Management Interface

Access the template management interface at:

The interface provides:

Basic PDF Generation

Page-Specific Templates

Advanced Usage with Headers and Footers

Custom PDF Options

Working with Multiple Languages

Programmatic Template Creation

Template Data Variables

Templates have access to default variables:

Template Examples

Invoice Header Template

Invoice Content Template

Invoice Footer Template

API Endpoints

The package provides RESTful API endpoints:

Method URI Action Description
GET /invoice-templates index Template management interface
GET /invoice-templates/get-data getData Get all templates (JSON)
POST /invoice-templates/store store Create new template
PUT /invoice-templates/update/{id} update Update existing template
DELETE /invoice-templates/delete/{id} destroy Delete template

API Usage Examples

Database Schema

The package creates a invoice_templates table with the following structure:

Troubleshooting

Common Issues

1. wkhtmltopdf not found

Solution: Ensure wkhtmltopdf is installed and the binary path is correctly configured.

2. Permission denied when saving PDFs

Solution: Ensure the public/files directory is writable:

3. Template not found

Solution: Create a default template or ensure templates exist for your page slugs.

4. CSRF token mismatch

Solution: Ensure CSRF token is included in AJAX requests:

Performance Optimization

  1. Use template caching for frequently used templates
  2. Optimize images before including in templates
  3. Minimize CSS and HTML in templates
  4. Use appropriate DPI settings based on your needs

Security Considerations

  1. Always validate input when creating templates programmatically
  2. Use password protection for content editing in production
  3. Sanitize user input in template content
  4. Restrict access using appropriate middleware
  5. Validate file paths when working with logos and assets

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Development Setup

  1. Clone the repository
  2. Install dependencies: composer install
  3. Run tests: composer test
  4. Check code style: composer pint

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security

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

Credits

License

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

Support

If you find this package helpful, please consider:


Built with ❤️ for the Laravel community


All versions of invoice-template with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
barryvdh/laravel-snappy Version ^1.0
illuminate/contracts Version >=5.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 mikailfaruqali/invoice-template contains the following files

Loading the files please wait ....