Download the PHP package tuzlu07x/social-media-ai-agent without Composer

On this page you can find all versions of the php package tuzlu07x/social-media-ai-agent. 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 social-media-ai-agent

Social Media AI Agent

Social Media AI Agent is an open-source PHP library that empowers developers to automate social media interactions using artificial intelligence. This package integrates with popular platforms like Twitter, Instagram, TikTok, and LinkedIn, and supports multiple AI models such as OpenAI, DeepSeek, HuggingFace, Gemini, and Grok. Whether you want to schedule posts, reply to messages, analyze trends, or process custom inputs, this agent provides a flexible and extensible framework to streamline your social media workflows.

Features

Requirements

Installation

Install the package via Composer:

Alternatively, clone the repository and install dependencies manually:

Configuration

To use the agent, you need to configure API keys for the social media platforms and AI models. It’s recommended to store these in a .env file and load them using a library like vlucas/phpdotenv.

Example .env File

Loading Environment Variables

If you’re using phpdotenv, add this to your script:

Then load the .env file:

Usage

Command Line Interface (CLI) The package provides a CLI tool (bin/agent) to interact with the agent.

Basic Syntax

<input>: The input string to process (e.g., "Tweet at 8 PM: Hello World"). --ai: The AI model to use (e.g., openai, deepseek, huggingface, gemini, grok). Default: openai. --platform: The social media platform (e.g., twitter, instagram). Default: twitter.

  1. Schedule a Tweet with OpenAI

Output: Scheduled action: postText at 8 PM 2. Post an Image to Instagram with DeepSeek

  1. Post an Image to Instagram with DeepSeek

Output: Image shared to Instagram:

  1. Invalid Input

Output: Error: AI model: unknown

Programmatic Usage

You can also use the agent directly in your PHP code:

Supported Platforms

Twitter: Post tweets, reply to messages (more features in progress). Instagram: Share images (text posts and replies in progress). TikTok: Skeleton implemented, full support coming soon. LinkedIn: Skeleton implemented, full support coming soon.

Supported AI Models

OpenAI: Fully supported with the GPT-3.5-turbo model. DeepSeek: Experimental support (API endpoint assumed). HuggingFace: Supports inference API with customizable models. Grok: Experimental support (xAI API assumed).

Extending the Agent

  1. Adding a New Social Media Platform
  2. Create a new adapter in src/SocialMedia/ implementing SocialMediaAdapterInterface.
  3. Update ServerCommand::addSocialMediaAdapter to include your platform.
  4. Adding a New AI Model
  5. Create a new adapter in src/AI/ implementing AIAdapterInterface.
  6. Update ServerCommand::createAIAdapter to include your model.

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your-feature).
  3. Commit your changes (git commit -m "Add your feature").
  4. Push to your branch (git push origin feature/your-feature).
  5. Open a Pull Request.

Roadmap

License

This project is licensed under the MIT License

Credits

Developed by Fatih Tuzlu (tuzlu07x). Special thanks to the open-source community!


All versions of social-media-ai-agent with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.9
symfony/console Version ^7.2
php Version ^8.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 tuzlu07x/social-media-ai-agent contains the following files

Loading the files please wait ....