PHP Classes

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

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-09-21 (8 months ago) RSS 2.0 feedNot enough user ratingsTotal: 68 All time: 10,309 This week: 45Up
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: 44661 in Tanzania Tanzania
Week rank: 301 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  
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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:68
This week:0
All time:10,309
This week:45Up
User Comments (1)
Incomplete
4 months ago (moo ldo)
5%Star