PHPackages                             blackbricksoftware/laravel-migration-builder-salesforce - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. blackbricksoftware/laravel-migration-builder-salesforce

ActiveLibrary[Database &amp; ORM](/categories/database)

blackbricksoftware/laravel-migration-builder-salesforce
=======================================================

Create migration of object structure from Salesforce Org to a local database.

v11.0.1(1y ago)11011MITPHPPHP ^8.2

Since Feb 1Pushed 1y ago2 watchersCompare

[ Source](https://github.com/blackbricksoftware/laravel-migration-builder-salesforce)[ Packagist](https://packagist.org/packages/blackbricksoftware/laravel-migration-builder-salesforce)[ RSS](/packages/blackbricksoftware-laravel-migration-builder-salesforce/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (21)Used By (0)

Laravel Migration Builder - Salesforce
======================================

[](#laravel-migration-builder---salesforce)

Introduction
------------

[](#introduction)

This package allows you to create migrations as analogs to Salesforce objects read from a connected org. It is useful for staging data for import or downloading data for warehousing.

See [Laravel Migration Builder](https://github.com/blackbricksoftware/laravel-migration-builder) for more details.

Prerequisites
-------------

[](#prerequisites)

- PHP 7.x or higher
- Laravel 6.x or higher
- Composer

Installation
------------

[](#installation)

### Install Package

[](#install-package)

```
composer require blackbricksoftware/laravel-migration-builder-salesforce --dev
```

### Publish Configuration

[](#publish-configuration)

```
php artisan vendor:publish --tag=laravel-migration-builder-salesforce-config
```

Modify `.env`
-------------

[](#modify-env)

Add the following lines to your `.env` file. See the [Salesforce REST API Client for Laravel](https://github.com/omniphx/forrest) page for specific configuration details.

```
SF_AUTH_METHOD=UserPassword
SF_CONSUMER_KEY=123455
SF_CONSUMER_SECRET=ABCDEF
SF_CALLBACK_URI=https://test.app/callback
SF_LOGIN_URL=https://login.salesforce.com
#SF_LOGIN_URL=https://test.salesforce.com
SF_USERNAME=test@example.com
SF_PASSWORD=password123
```

`SF_AUTH_METHOD=UserPassword` will likely be the easiest method for a CLI application.

`SF_LOGIN_URL` will generally be `https://login.salesforce.com` for a live org or `https://test.salesforce.com` for a sandbox org.

`SF_PASSWORD` will be the user's login password with the user's token concatenated on the end.

Modify Configuration (Optional)
-------------------------------

[](#modify-configuration-optional)

Change `storage.type` to `object` if you intend to use more than one Salesforce connection.

Usage
-----

[](#usage)

### Commands

[](#commands)

- `php artisan make:migration-builder:salesforce:object ObjectName`: Make a migration mirroring the structure of the given object (`ObjectName`).
- `php artisan make:migration-builder:salesforce:object:list`: List available objects in the connected Salesforce org.
- `php artisan make:migration-builder:salesforce:object:debug ObjectName`: Create three files (`ObjectName.var_dump.txt`, `ObjectName.print_r.txt`, and pretty printed `ObjectName.json`) in the `Storage::disk('local')` directory (usually `storage/app/migration-builder/salesforce/`) showing the response from the Salesforce REST API.

Acknowledgements
----------------

[](#acknowledgements)

- Thanks to omniphx for the [Salesforce REST API Client for Laravel](https://github.com/omniphx/forrest).
- [Salesforce Developer Documentation](https://developer.salesforce.com/docs/atlas.en-us.230.0.api.meta/api/sforce_api_calls_describesobjects_describesobjectresult.htm).

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~70 days

Recently: every ~131 days

Total

20

Last Release

641d ago

Major Versions

v0.3.2 → v9.0.02024-09-24

v9.0.0 → v10.0.02024-09-24

v10.0.0 → v11.0.02024-09-24

PHP version history (4 changes)v0.1.0PHP ^7.4|^8.0

v0.3.0PHP ^8.0.2

v10.0.0PHP ^8.1

v11.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/49ef798c46472a4224ac686d224ee867915858ae5325a60f5feee5c1cb833928?d=identicon)[redbeanbananas](/maintainers/redbeanbananas)

---

Top Contributors

[![davidjosephhayes](https://avatars.githubusercontent.com/u/9373380?v=4)](https://github.com/davidjosephhayes "davidjosephhayes (1 commits)")[![sigmaenigma](https://avatars.githubusercontent.com/u/3394398?v=4)](https://github.com/sigmaenigma "sigmaenigma (1 commits)")

### Embed Badge

![Health badge](/badges/blackbricksoftware-laravel-migration-builder-salesforce/health.svg)

```
[![Health](https://phpackages.com/badges/blackbricksoftware-laravel-migration-builder-salesforce/health.svg)](https://phpackages.com/packages/blackbricksoftware-laravel-migration-builder-salesforce)
```

###  Alternatives

[spatie/laravel-medialibrary

Associate files with Eloquent models

6.1k43.2M633](/packages/spatie-laravel-medialibrary)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M203](/packages/laravel-ai)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725173.6k14](/packages/tallstackui-tallstackui)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k91.9k1](/packages/mike-bronner-laravel-model-caching)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[laravel/surveyor

Static analysis tool for Laravel applications.

86121.4k13](/packages/laravel-surveyor)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
