PHPackages                             prateekbhujel/larapost - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. prateekbhujel/larapost

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

prateekbhujel/larapost
======================

Laravel publishing and scheduling for Facebook Pages, Twitter/X, and LinkedIn

v1.0.0(1mo ago)41MITPHPPHP ^8.1CI passing

Since Mar 30Pushed 1mo agoCompare

[ Source](https://github.com/prateekbhujel/larapost)[ Packagist](https://packagist.org/packages/prateekbhujel/larapost)[ Docs](https://github.com/prateekbhujel/larapost)[ RSS](/packages/prateekbhujel-larapost/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (10)Versions (5)Used By (0)

LaraPost
========

[](#larapost)

[![LaraPost banner](./docs/assets/brand/larapost-banner.png)](./docs/assets/brand/larapost-banner.png)

[![CI](https://github.com/prateekbhujel/larapost/actions/workflows/ci.yml/badge.svg)](https://github.com/prateekbhujel/larapost/actions/workflows/ci.yml)[![Packagist](https://camo.githubusercontent.com/e38944f1745c333a32a5664291293138e2dd06faf440c1a96f61b21366ad4e95/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7072617465656b6268756a656c2f6c617261706f73742e737667)](https://packagist.org/packages/prateekbhujel/larapost)[![PHP](https://camo.githubusercontent.com/092d545f529c0bc11f393035f40f9cced2c9db2a0d148532f4fc2aa5409dc992/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e312d3737374242342e737667)](https://php.net)[![Laravel](https://camo.githubusercontent.com/dd700a0a1988f8aae89200bae90f6490bf803bdb55766c5bd79f5f83a944175a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d31302532302537432532303131253230253743253230313225323025374325323031332d4646324432302e737667)](https://laravel.com)[![License](https://camo.githubusercontent.com/d889a18b9b7fe9994dd1216ec40fe986735181c28eef2a98facdc0e1697cb3d2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d3131313131312e737667)](./LICENSE)

LaraPost is a Laravel package for publishing and scheduling content to Facebook Pages, Twitter / X, and LinkedIn from one API and one dashboard.

LaraPost supports publishing and scheduling for Facebook Pages, Twitter / X, and LinkedIn from one Laravel API and dashboard.

Features
--------

[](#features)

- One fluent API via `SocialSync\Facades\SocialMedia`
- Built-in dashboard at `/larapost/dashboard`
- OAuth connect flow for Facebook, Twitter / X, and LinkedIn
- Multi-Page Facebook sync from one Meta login
- Immediate publishing and scheduled publishing
- Bulk composer for different content across different accounts
- Retry and scheduled runner commands
- CI for PHP `8.1`, `8.2`, `8.3`, `8.4`, and `8.5`

Support Matrix
--------------

[](#support-matrix)

PlatformConnectPublishNotesFacebookOAuth to Facebook loginPage posts with text, image URL, and video URLFacebook Pages only. Personal profile posting is not supported.Twitter / XOAuth 2.0Text postsYour X app still needs write access plus billing or credits. The dashboard does not upload media to X.LinkedInOAuth 2.0Member profile text postsLinkedIn organization pages are not supported. Image upload expects a readable local file path when used programmatically.Installation
------------

[](#installation)

```
composer require prateekbhujel/larapost
php artisan larapost:install
```

Manual setup:

```
php artisan vendor:publish --tag=larapost-config
php artisan vendor:publish --tag=larapost-migrations
php artisan vendor:publish --tag=larapost-views
php artisan migrate
```

Configuration
-------------

[](#configuration)

```
LARAPOST_DEFAULT_PLATFORM=facebook
LARAPOST_QUEUE_ENABLED=true
LARAPOST_MAX_RETRY_ATTEMPTS=3
LARAPOST_UI_ENABLED=true

FACEBOOK_APP_ID=
FACEBOOK_APP_SECRET=
FACEBOOK_API_VERSION=v20.0

TWITTER_CLIENT_ID=
TWITTER_CLIENT_SECRET=

LINKEDIN_CLIENT_ID=
LINKEDIN_CLIENT_SECRET=
```

Dashboard-saved provider credentials override `.env` values.

Quick Start
-----------

[](#quick-start)

Connect at least one provider account, then publish from code:

```
use SocialSync\Facades\SocialMedia;

$results = SocialMedia::post()
    ->content('Release update from LaraPost')
    ->platforms(['facebook', 'twitter'])
    ->publish();
```

Schedule for later:

```
use SocialSync\Facades\SocialMedia;

$results = SocialMedia::post()
    ->content('Tomorrow morning post')
    ->platforms(['facebook'])
    ->scheduleFor(now()->addHours(12))
    ->publish();
```

Connect an account from the CLI:

```
php artisan larapost:add-account facebook
php artisan larapost:add-account twitter
php artisan larapost:add-account linkedin
```

Dashboard
---------

[](#dashboard)

The built-in dashboard lives at `GET /larapost/dashboard`.

It includes:

- Provider credential forms with encrypted database storage
- Login popups for Facebook Pages, Twitter / X, and LinkedIn profiles
- Account targeting for exact Pages and accounts
- Bulk composer for different copy per connected account
- Recent publish history and account toggles

The dashboard is a real operator surface, not a demo screen. It only exposes the support that ships in `v1.0.0`.

Scheduling
----------

[](#scheduling)

Run the scheduled runner every minute:

```
* * * * * php /path/to/artisan larapost:run-scheduled >> /dev/null 2>&1
```

Useful commands:

- `php artisan larapost:install`
- `php artisan larapost:add-account {platform}`
- `php artisan larapost:test`
- `php artisan larapost:run-scheduled`

Docs
----

[](#docs)

- Docs portal:
- Contributing guide: [CONTRIBUTING.md](./CONTRIBUTING.md)
- Security policy: [SECURITY.md](./SECURITY.md)
- Release playbook: [RELEASE.md](./RELEASE.md)
- Changelog: [CHANGELOG.md](./CHANGELOG.md)

Contributing
------------

[](#contributing)

Community contributions should come from forks. See [CONTRIBUTING.md](./CONTRIBUTING.md) for the expected workflow.

License
-------

[](#license)

LaraPost is released under the [MIT license](./LICENSE).

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance91

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~10 days

Total

4

Last Release

43d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/37dd4f36c099f1295753fee82e53747545412c23b7fe6b1f73852a7420a12a12?d=identicon)[prateekbhujel](/maintainers/prateekbhujel)

---

Top Contributors

[![prateekbhujel](https://avatars.githubusercontent.com/u/13213140?v=4)](https://github.com/prateekbhujel "prateekbhujel (39 commits)")

---

Tags

composer-packagecontent-schedulingfacebooklaravellaravel-packageslinkedinmulti-platform-app-uioauthopen-sourcephp8social-mediasocial-media-apisocial-postingtwitterlaravelfacebooktwitterschedulinglinkedinsocial mediax

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/prateekbhujel-larapost/health.svg)

```
[![Health](https://phpackages.com/badges/prateekbhujel-larapost/health.svg)](https://phpackages.com/packages/prateekbhujel-larapost)
```

###  Alternatives

[fof/oauth

Allow users to log in with GitHub, Facebook, Google, Discord, GitLab, LinkedIn, and more!

50118.7k41](/packages/fof-oauth)[pdir/social-feed-bundle

Social feed extension for Contao CMS

1414.8k](/packages/pdir-social-feed-bundle)[pitchanon/facebook-connect

A Laravel package for connecting to the Meta (Facebook) Graph API.

264.3k1](/packages/pitchanon-facebook-connect)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1516.7k](/packages/truckersmp-steam-socialite)

PHPackages © 2026

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