Composer Libraries

Composer Libraries

Here we are sharing some good composer packages.

Some outstanding packages are available in Composer repository. The list and short description is always helpful.

Some beautiful plugins :

PHPMailer :

A full-featured email creation and transfer class for PHP

  • Probably the world's most popular code for sending email from PHP!
  • Used by many open-source projects: WordPress, Drupal, 1CRM, SugarCRM, Yii, Joomla! and many more
  • Integrated SMTP support – send without a local mail server
  • Send emails with multiple To, CC, BCC and Reply-to addresses
  • Multipart/alternative emails for mail clients that do not read HTML email
  • Add attachments, including inline
  • Support for UTF-8 content and 8bit, base64, binary, and quoted-printable encodings
  • SMTP authentication with LOGIN, PLAIN, CRAM-MD5, and XOAUTH2 mechanisms over SMTPS and SMTP+STARTTLS transports
  • Validates email addresses automatically
  • Protects against header injection attacks
  • Error messages in over 50 languages!
  • DKIM and S/MIME signing support
  • Compatible with PHP 5.5 and later, including PHP 8.0
  • Namespaced to prevent name clashes
  • Much more!

URL: PHPMailer Repository

composer require phpmailer/phpmailer

Akeneo Spreadsheet Parser :

Akeneo Spreadsheet parser. Reads XLXS files from Microsoft Excel and Open Office

This component is designed to extract data from spreadsheets, while being easy on resources, even for large files.

The current version of the spreadsheet parser works with csv and xlsx files

composer require akeneo-labs/spreadsheet-parser


TCPDF is a PHP class for generating PDF documents and barcodes.

PHP library for generating PDF documents on-the-fly.

  • no external libraries are required for the basic functions;
  • all standard page formats, custom page formats, custom margins and units of measure;
  • UTF-8 Unicode and Right-To-Left languages;
  • TrueTypeUnicode, OpenTypeUnicode v1, TrueType, OpenType v1, Type1 and CID-0 fonts;
  • font subsetting;
  • methods to publish some XHTML + CSS code, Javascript and Forms;
  • images, graphic (geometric figures) and transformation methods;

Please visit link to see more features:

composer require tecnickcom/tcpdf

phpoffice/phpspreadsheet :

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

PhpSpreadsheet is a library written in pure PHP and offers a set of classes that allow you to read and write various spreadsheet file formats such as Excel and LibreOffice Calc.

PhpSpreadsheet is the next version of PHPExcel. It breaks compatibility to dramatically improve the code base quality (namespaces, PSR compliance, use of latest PHP language features, etc.).

Because all efforts have shifted to PhpSpreadsheet, PHPExcel will no longer be maintained. All contributions for PHPExcel, patches and new features, should target PhpSpreadsheet master branch.

composer require phpoffice/phpspreadsheet