PHP Classes

PHP Twitter API Post Tweet: Post tweet messages using Twitter API 2

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 72 All time: 10,240 This week: 43Up
Version License PHP version Categories
post-to-twitter 1.0.3Custom (specified...5PHP 5, Web services, Social Networking
Collaborate with this project 

Author

Post-to-Twitter - github.com

Description

This package can post tweet messages using Twitter API 2.

It can access version 2 of Twitter API to perform operations allowed by this API for the Twitter user to use a given OAuth token and token secret.

Currently, it can post a Twitter message on behalf of the authorized user.

Picture of helman benedict mwageni
  Performance   Level  
Name: helman benedict mwageni <contact>
Classes: 1 package by
Country: Tanzania Tanzania
Age: 30
All time rank: 44621 in Tanzania Tanzania
Week rank: 200 Up1 in Tanzania Tanzania Equal

Example

<?php

// Set up your Twitter API credentials
$consumerKey = 'consumerKey';
$consumerSecret = 'consumerSecret';
$accessToken = 'accessToken';
$accessTokenSecret = 'accessTokenSecret';

$text = 'This is testing post';

require
"TwitterAPI.php";
?>


Details

Post-to-Twitter

This project helps you to publish posts to Twitter

Twitter API PHP Client

This is a simple PHP client for posting tweets using the Twitter API. It provides a convenient way to interact with the Twitter API and post tweets programmatically.

Getting Started

Prerequisites

  • PHP 7.0 or later
  • cURL extension for PHP

Installation

  1. Clone the repository to your local machine: git clone https://github.com/hermanbenedict/Post-to-Twitter.git
  2. Set up your Twitter API credentials:

Replace the placeholders in the main.php file with your actual Twitter API credentials:

   // Set up your Twitter API credentials
   $consumerKey = 'Your consumer key';
   $consumerSecret = 'Your consumer secret key';
   $accessToken = 'Your Access token';
   $accessTokenSecret = 'Your access token secret';

### Contributing
If you find any issues with the code or would like to suggest improvements, please open an issue or submit a pull request.

License
This project is licensed under the MIT License - see the LICENSE file for details.

Contact
You can contact the author, Helman Mwageni, on Telegram @malinzema or WhatsApp +255759891571.

try out our Telegram AI bot here https://t.me/WaGPTBot

  Files folder image Files (4)  
File Role Description
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file main.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation
Plain text file TwitterAPI.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:72
This week:0
All time:10,240
This week:43Up
User Comments (1)
Incomplete
8 months ago (moo ldo)
5%Star