PHPackages                             askancy/larasap - 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. [API Development](/categories/api)
4. /
5. askancy/larasap

ActiveLibrary[API Development](/categories/api)

askancy/larasap
===============

Laravel social auto posting (Larasap) lets you automatically post all your content to social networks such as Telegram Channel and Twitter.

00PHP

Since Jan 13Pushed 2y agoCompare

[ Source](https://github.com/Askancy/laravel-social-auto-posting)[ Packagist](https://packagist.org/packages/askancy/larasap)[ RSS](/packages/askancy-larasap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

[![](https://camo.githubusercontent.com/676a98c5c612baf022e9d1a33aea2f6d54f815adab66e2bfc8a7bf9f981d1dce/68747470733a2f2f692e696d6775722e636f6d2f6a36627a4b51632e6a7067)](https://camo.githubusercontent.com/676a98c5c612baf022e9d1a33aea2f6d54f815adab66e2bfc8a7bf9f981d1dce/68747470733a2f2f692e696d6775722e636f6d2f6a36627a4b51632e6a7067)

[![Build Status](https://camo.githubusercontent.com/409295c27e853193cc5a2fe7f8c896acdc2b7c84c8327442a8d5a3a3de222c89/68747470733a2f2f7472617669732d63692e6f72672f41736b616e63792f6c61726176656c2d736f6369616c2d6175746f2d706f7374696e672e7376673f6272616e63683d6d6173746572)](https://github.com/Askancy/laravel-social-auto-posting) [![GitHub tag](https://camo.githubusercontent.com/1f61962c6f70223458beb017084d9bfc1a67ec9a960226978644f940d388834f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f62657661637175612f617765736f6d652d6261646765732e737667)](https://github.com/Askancy/laravel-social-auto-posting)

🌈 Introduction
==============

[](#-introduction)

This is a Laravel package to post your content to social networks such:

- Telegram Channel (‌Based on [Telegram Bot API](https://core.telegram.org/bots/api))
- Twitter
- Facebook

🚀 Features:
-----------

[](#-features)

- 🍒 Simple. Easy to use.
- 📝 Send text message to Telegram channel
- 📷 Send photo to Telegram channel
- 🎵 Send audio to Telegram channel
- 📖 Send document to Telegram channel
- 📺 Send video to Telegram channel
- 🔊 Send voice to Telegram channel
- 🎴 Send a group of photos or videos as an album to Telegram channel
- 📍 Send location to Telegram
- 📌 Send venue to Telegram
- 📞 Send contact to Telegram
- 🌐 Send message with url inline keyboard to Telegram channel
- ✨ Send text and media to Twitter
- 🎉 Send text and media to Facebook

🔨 Installation:
---------------

[](#-installation)

1. Download and install package via composer:

```
composer require Askancy/larasap
```

2. Run the command below to publish the package config file: `config\larasap.php`

```
php artisan vendor:publish --tag=larasap
```

🔌 Configuration:
----------------

[](#-configuration)

Set the social network information in the `config\larasap.php`.

🕹 Usage:
--------

[](#-usage)

First, add the `use Askancy\Larasap\SendTo;` in your controller.

Next, send message to your Telegram channel or Twitter account.

🚩 Roadmap
---------

[](#-roadmap)

- Improve tests and coverage
- Improve performance

🌱 Quick examples:
-----------------

[](#-quick-examples)

### ⭐ Telegram examples:

[](#-telegram-examples)

#### 📝 Send text message to Telegram:

[](#-send-text-message-to-telegram)

```
SendTo::Telegram('Hello, I\'m testing Laravel social auto posting');
```

#### 📷 Send photo to Telegram:

[](#-send-photo-to-telegram)

```
SendTo::Telegram(
    'Hello, I\'m testing Laravel social auto posting', // Photo caption (Optional)
    [
        'type' => 'photo', // Message type (Required)
        'file' => 'https://i.imgur.com/j6bzKQc.jpg' // Image url (Required)
    ],
    '' // Inline keyboard (Optional)
);
```

#### 🎵 Send audio to Telegram:

[](#-send-audio-to-telegram)

```
SendTo::Telegram(
 'Hello, I\'m testing Laravel social auto posting', // Audio caption (Optional)
 [
     'type' => 'audio', // Message type (Required)
     'file' => 'http://example.com/let-me-be-your-lover.mp3', // Audio url (Required)
     'duration' => 208, // Duration of the audio in seconds (Optional)
     'performer' => 'Enrique Iglesias', // Performer (Optional)
     'title' => 'Let Me Be Your Lover' // Track name (Optional)
 ],
'' // Inline keyboard (Optional)
);
```

#### 📖 Send document to Telegram:

[](#-send-document-to-telegram)

```
SendTo::Telegram(
   'Hello, I\'m testing Laravel social auto posting', // Document caption
   [
       'type' => 'document', // Message type (Required)
       'file' => 'http://example.com/larasap.pdf', // Document url (Required)
   ],
  '' // Inline keyboard (Optional)
);
```

#### 📺 Send video to Telegram:

[](#-send-video-to-telegram)

```
SendTo::Telegram(
  'Hello, I\'m testing Laravel social auto posting', // Video caption (Optional)
  [
      'type' => 'video', // Message type (Required)
      'file' => 'http://example.com/let-me-be-your-lover.mp4', // Audio url (Required)
      'duration' => 273, // Duration of sent video in seconds (Optional)
      'width' => 1920, // Video width (Optional)
      'height' => 1080 // Video height (Optional)
  ],
 '' // Inline keyboard (Optional)
);
```

#### 🔊 Send voice to Telegram:

[](#-send-voice-to-telegram)

```
SendTo::Telegram(
  'Hello, I\'m testing Laravel social auto posting', // Voice message caption (Optional)
  [
      'type' => 'voice', // Message type (Required)
      'file' => 'https://upload.wikimedia.org/wikipedia/en/9/9f/Sample_of_%22Another_Day_in_Paradise%22.ogg', // Audio url (Required)
      'duration' => 28 // Duration of the voice message in seconds (Optional)
  ],
 '' // Inline keyboard (Optional)
);
```

#### 🎴 Send media group to Telegram:

[](#-send-media-group-to-telegram)

```
SendTo::Telegram(
   null,
   [
       'type' => 'media_group', // Message type (Required)
       'files' => // Array describing photos and videos to be sent, must include 2–10 items
       [
           [
               'type' => 'photo', // Media type (Required)
               'media' => 'https://i.imgur.com/j6bzKQc.jpg', // Media url (Required)
               'caption' => 'Laravel sccial auto posting' // Media caption (Optional)
           ],
           [
               'type' => 'video', // Media type (Required)
               'media' => 'http://example.com/let-me-be-your-lover.mp4', // Media url (Required)
               'caption' => 'Let me be your lover' // Media caption (Optional)
           ]
       ]
   ]
);
```

#### 📍 Send point on the map to Telegram:

[](#-send-point-on-the-map-to-telegram)

```
SendTo::Telegram(
    null,
    [
        'type' => 'location', // Message type (Required)
        'latitude' => 36.1664345, // Latitude of the location (Required)
        'longitude' => 58.8209904, // Longitude of the location (Required)
        'live_period' => 86400, // Period in seconds for which the location will be updated (Optional)
        '' // Inline keyboard (Optional)
);
```

#### 📌 Send information about a venue to Telegram:

[](#-send-information-about-a-venue-to-telegram)

```
SendTo::Telegram(
    null,
    [
        'type' => 'venue', // Message type (Required)
        'latitude' => 36.166048, // Latitude of the location (Required)
        'longitude' => 58.822121, // Longitude of the location (Required)
        'title' => 'Khayyam', // Name of the venue (Required)
        'address' => 'Neyshabur, Razavi Khorasan Province, Iran', // Address of the venue (Required)
        'foursquare_id' => '', // Foursquare identifier of the venue (Optional)
        '' // Inline keyboard (Optional)
);
```

#### 📞 Send phone contacts to Telegram:

[](#-send-phone-contacts-to-telegram)

```
SendTo::Telegram(
    null,
    [
        'type' => 'contact', // Message type (Required)
        'phone_number' => '+12025550149', // Contact's phone number (Required)
        'first_name' => 'John', // Contact's first name (Required)
        'last_name' => 'Doe', // Contact's last name (Optional)
        '' // Inline keyboard (Optional)
    ]
);
```

#### 🌐 Send message with inline button to Telegram:

[](#-send-message-with-inline-button-to-telegram)

```
SendTo::Telegram(
    'Laravel social auto posting',
    '',
    [
        [
            [
                'text' => 'Github',
                'url' => 'https://github.com/Askancy/laravel-social-auto-posting'
            ]
        ],
        [
            [
                'text' => 'Download',
                'url' => 'https://github.com/Askancy/laravel-social-auto-posting/archive/master.zip'
            ],
        ]
    ]
);
```

Or

```
SendTo::Telegram(
    'Laravel social auto posting',
    '',
    [
        [
            [
                'text' => 'Github',
                'url' => 'https://github.com/Askancy/laravel-social-auto-posting'
            ],
            [
                'text' => 'Download',
                'url' => 'https://github.com/Askancy/laravel-social-auto-posting/archive/master.zip'
            ],
        ]
    ]
);
```

### ⭐ Twitter examples:

[](#-twitter-examples)

#### ✨ Text tweet:

[](#-text-tweet)

```
SendTo::Twitter('Hello, I\'m testing Laravel social auto posting');
```

#### ✨ Tweet with media:

[](#-tweet-with-media)

```
SendTo::Twitter(
    'Hello, I\'m testing Laravel social auto posting',
    [
        public_path('photo-1.jpg'),
        public_path('photo-2.jpg')
    ]
);
```

### ⭐ Facebook examples:

[](#-facebook-examples)

#### 🎉 Send link to Facebook page:

[](#-send-link-to-facebook-page)

```
SendTo::Facebook(
    'link',
    [
        'link' => 'https://github.com/Askancy/laravel-social-auto-posting',
        'message' => 'Laravel social auto posting'
    ]
);
```

#### 🎉 Send photo to Facebook page:

[](#-send-photo-to-facebook-page)

```
SendTo::Facebook(
    'photo',
    [
        'photo' => public_path('img/1.jpg'),
        'message' => 'Laravel social auto posting'
    ]
);
```

#### 🎉 Send video to Facebook page:

[](#-send-video-to-facebook-page)

```
SendTo::Facebook(
    'video',
    [
        'video' => public_path('upload/1.mp4'),
        'title' => 'Let Me Be Your Lover',
        'description' => 'Let Me Be Your Lover - Enrique Iglesias'
    ]
);
```

###  Health Score

12

—

LowBetter than 0% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 81% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0774a513bb5b13d7d314c88cbce01726eddb0e4282a0899116ab3ece887ceda6?d=identicon)[Askancy](/maintainers/Askancy)

---

Top Contributors

[![Askancy](https://avatars.githubusercontent.com/u/789702?v=4)](https://github.com/Askancy "Askancy (17 commits)")[![karabayyazilim](https://avatars.githubusercontent.com/u/45515180?v=4)](https://github.com/karabayyazilim "karabayyazilim (2 commits)")[![SSEsmaeeli](https://avatars.githubusercontent.com/u/30143856?v=4)](https://github.com/SSEsmaeeli "SSEsmaeeli (2 commits)")

### Embed Badge

![Health badge](/badges/askancy-larasap/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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