Setup your App in Twitter.com
- Login to https://twitter.com (If Not registered, please register first)
- Add Mobile Number and verify (https://twitter.com/settings/devices)
- Go to Manage Apps page (i.e https://apps.twitter.com/)
- Create a New App
- Fill all required info
- In "What type of access does your application need" set "Read and write"
- Save API Key and API secret (Consumer key and Consumer Secret key)
Follow PHP Work from Below sites(I have test this, Its working)