Download the PHP package hojabbr/laravel-social without Composer

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

Laravel Social

Driver-based social publishing and analytics for Laravel: Instagram, YouTube and Telegram behind one contract, resolved the way Laravel resolves a disk or a queue connection.

Three outcomes

publish() never throws. Every driver maps its network's failures onto:

Outcome Meaning Caller
Sent The object exists. Record its id.
Rejected The network refused; nothing was created. Release the claim; a corrected retry is safe.
Unknown Timeout, dropped connection, ambiguous 5xx; it may exist. Keep the claim and surface it; never blind-retry.

The boundary is where the object starts to exist: a failed Instagram container is Rejected, a dropped connection during media_publish is Unknown.

Requirements

Install

Publish the whole config and keep it whole: mergeConfigFrom merges only the first level, so nested keys you delete are not backfilled and new nested keys need a re-publish.

Configuration

networks are transports (credentials, API bases, queue lanes); accounts are places to post.

Publishing

Capabilities

Drivers refuse media whose mime type is not listed, before sending.

Optional contracts

Check with instanceof; a driver implements one only when its network has the feature.

Contract Implemented by
SupportsDeletion Telegram, YouTube
SupportsCoverUpdate YouTube
SupportsMediaReplacement (new file and caption in the same post) Telegram
SupportsComments (write-only: reply, hide, delete) Instagram
SupportsTopics Telegram
ProvidesAnalytics Instagram, YouTube
RefreshesTokens Instagram, YouTube

Instagram cannot delete posts, replace a Reel's cover or its video on an Instagram-Login token, and its comment read API returns an empty list, so there is no read method.

Analytics

Every method returns Metrics, a flat bag of values, including on failure (Metrics::unavailable()). toArray() / fromArray() are the cache-safe shape.

Token refresh

The driver renews and returns credentials; persisting them is yours. Then drop the memoised driver.

Rate and health

Spacing is per account and counts messages: Telegram's ~20 per minute is per chat, and an album spends one slot per page.

Testing

Repeated willReturn() calls queue in order and the last repeats; unusable() makes the network look switched off. Run the package's own suite with composer test.

Adding a network

Implement Contracts\Driver (extend Drivers\BaseDriver for config, accounts and destination()), plus the optional contracts your network supports, and add a network entry naming the driver.

Network notes

License

MIT. See LICENSE.md.


All versions of laravel-social with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
illuminate/contracts Version ^13.0
illuminate/http Version ^13.0
illuminate/process Version ^13.0
illuminate/support Version ^13.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 hojabbr/laravel-social contains the following files

Loading the files please wait ...