Download the PHP package developerabod/laravel-contact-exporter without Composer

On this page you can find all versions of the php package developerabod/laravel-contact-exporter. 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 laravel-contact-exporter

# 📇 Laravel Contact Exporter
Laravel Contact Exporter
**A Laravel package to export database contacts as vCard (`.vcf`) files — clean, professional, and effortless.** [![PHP](https://img.shields.io/badge/PHP-%5E8.3-blue?style=flat-square&logo=php)](https://php.net) [![Laravel](https://img.shields.io/badge/Laravel-10%20%7C%2011%20%7C%2012-red?style=flat-square&logo=laravel)](https://laravel.com) [![License: MIT](https://img.shields.io/badge/License-MIT-green?style=flat-square)](LICENSE)

✨ Features


📦 Installation

Step 1 — Install via Composer

Step 2 — Publish the Config File

This creates the file: config/vcard-exporter.php


⚙️ Configuration

Open config/vcard-exporter.php and map each config key to the actual column name in your database table:

Note: last_name and email are disabled by default. Enable them at runtime using withLastName() and withEmail() on the VCard facade — no config changes needed.


🚀 Usage

Simplest Case — Relies entirely on config


With Last Name


With Email


With Both Last Name and Email


Different Table (overrides config)


Override Column Mapping (without changing config)


With WHERE Conditions

Note: where() only works when using from(). Do not combine it with fromQuery().


From an Eloquent Model

Important: When using fromQuery(), apply all conditions directly to the query before passing it in. Do not chain where() on the VCard facade alongside fromQuery().


From a DB::table Query


Custom Filename


Full Control — All Options Combined


📋 Configuration Reference

Option Description Default
table Database table name contacts
filename Output filename without .vcf extension contacts
append_count Append the total record count to the filename true
append_date Append today's date to the filename false
skip_empty_phone Skip records that have no phone number true
normalize_phone Strip symbols and formatting from phone numbers true
charset_utf8 Enable UTF-8 charset for Arabic name support true
chunk_size Number of records to process per chunk 500

📖 API Reference

Method Description
from(string $table) Set the database table to query
fromQuery($query) Pass in a ready-made Eloquent or DB::table query builder
map(array $columns) Override the column mapping at runtime
where(array $conditions) Add WHERE conditions (only works with from())
withLastName() Enable the last name field
withEmail() Enable the email field
filename(string $name) Set a custom output filename
chunkSize(int $size) Override the chunk size for this export
download(?string $filename) Execute the export and stream the .vcf file

🏗️ Package Structure


📋 Requirements

Requirement Version
PHP ^8.3
Laravel ^10 \| ^11 \| ^12

📄 License

Open source, released under the MIT License.


Made with ❤️ by [Developer Abod](https://github.com/developerabod)

All versions of laravel-contact-exporter with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/support Version ^10|^11|^12
illuminate/database Version ^10|^11|^12
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 developerabod/laravel-contact-exporter contains the following files

Loading the files please wait ...