Download the PHP package toolkito/larasap without Composer

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

๐Ÿ‘‹ Introduction Laravel Social Auto Posting (Larasap)

Important Notice: This package has been moved from toolkito/larasap to alihesari/larasap. The old package is no longer maintained. Please use the new namespace for all future installations.

A powerful Laravel package that enables automated posting to multiple social media platforms including Telegram, X (Twitter), and Facebook. This package provides a simple and elegant way to manage your social media presence.

๐Ÿ” Authentication Methods

X (Twitter) API Authentication

This package uses OAuth 1.0a for X API authentication because:

While X also supports OAuth 2.0, OAuth 1.0a is the recommended choice for this package's use case of automated server-side posting.

Facebook API Authentication

The package uses Facebook Graph API with Page Access Token for authentication. This provides:

Telegram Bot API Authentication

Uses Telegram Bot API token for authentication, providing:

๐Ÿš€ Features

Telegram Features

X (Twitter) Features

Facebook Features

๐Ÿ”จ Installation

  1. Install the package via Composer:

  2. Publish the configuration file:

๐Ÿ”Œ Configuration

Configure your social media credentials in config/larasap.php:

Detailed Configuration Guide

Telegram Configuration

X (Twitter) Configuration

Facebook Configuration

Environment Variables

You can also set these values in your .env file:

Configuration Validation

The package validates all configuration values on initialization. If any required values are missing or invalid, it will throw an exception with a descriptive message.

Configuration Caching

For better performance, the package caches the configuration values. If you need to refresh the configuration, you can clear the Laravel configuration cache:

๐Ÿ•น Usage

First, add the following to your controller:

Telegram Examples

Basic Text Message

Text Message with Inline Keyboard

Send Photo with Caption

Send Audio File

Send Video with Thumbnail

Send Document

Send Location

X (Twitter) Examples

Basic Tweet

Tweet with Media

Reply to Tweet

Quote Tweet

Create Poll

Tweet with Location

Facebook Examples

Share Link with Custom Message

Share Photo with Caption

Share Video with Metadata

Share with Custom Privacy Settings

Share with Targeting

๐Ÿ”’ Security Features

โšก Performance Features

๐Ÿงช Testing

The package includes comprehensive test coverage:

๐Ÿงช Testing Routes

To test the social media posting functionality, you can create your own routes in your Laravel application. Here's an example:

  1. Create a controller:

  2. Add the following code to your controller:

  3. Add the route in your routes/web.php:

Now you can test the social media posting by visiting /test-social-posting in your browser.

Note: Make sure you have configured your social media credentials in config/larasap.php or your .env file before testing.

๐Ÿ“ Notes

๐Ÿšฉ Roadmap

๐Ÿ“„ License

This package is open-sourced software licensed under the MIT license.

License Terms

The MIT License is a permissive license that is short and to the point. It lets people do anything they want with your code as long as they provide attribution back to you and don't hold you liable.

What you can do with this package:

What you must do:

What you cannot do:

Copyright Notice

Third-Party Licenses

This package uses several third-party libraries:

For more information about third-party licenses, please see the composer.json file.

๐Ÿ‘ฅ Contributing

We welcome contributions to Laravel Social Auto Posting! Here's how you can help:

Development Setup

  1. Fork the repository
  2. Clone your fork:

  3. Install dependencies:

  4. Create a new branch for your feature:

Coding Standards

Testing

  1. Run the test suite:

  2. Run with coverage report:

Pull Request Process

  1. Update the README.md with details of changes if needed
  2. Update the CHANGELOG.md with your changes
  3. The PR will be merged once you have the sign-off of at least one other developer

Commit Messages

Reporting Issues

Feature Requests

Security

Code of Conduct

By participating in this project, you agree to abide by our Code of Conduct.

๐Ÿค Support

If you encounter any issues or have questions, please open an issue on GitHub.

๐Ÿ›  Development and Testing

Example Project

This package includes a Laravel 12 example project in the examples/laravel-12 directory that you can use for development and testing. This setup is particularly useful for:

Setting Up the Development Environment

  1. Clone the repository:

  2. Set up the example project:

  3. Configure your social media credentials in .env:

  4. Link the package for development:

  5. Start the development server:

Debugging

The example project includes VS Code debugging configurations in .vscode/launch.json for:

To use the debugger:

  1. Install the PHP Debug extension in VS Code
  2. Set breakpoints in your code
  3. Select the appropriate debug configuration
  4. Start debugging (F5)

Contributing

When contributing to the package:

  1. Use the example project to test your changes
  2. Ensure all tests pass
  3. Follow the existing code style
  4. Update documentation as needed
  5. Submit a pull request with a clear description of your changes

All versions of larasap with dependencies

PHP Build Version
Package Version
Requires php Version ~7.0
illuminate/support Version 5.6.x|5.7.x
facebook/graph-sdk Version ^5.6.1
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 toolkito/larasap contains the following files

Loading the files please wait ....