PHPackages                             mikke/twitter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mikke/twitter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mikke/twitter
=============

Small TW Connector

0.0.7(12y ago)015PHPPHP &gt;=5.3.0

Since May 9Pushed 2y agoCompare

[ Source](https://github.com/mikkezavala/twitter)[ Packagist](https://packagist.org/packages/mikke/twitter)[ RSS](/packages/mikke-twitter/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (5)Dependencies (1)Versions (7)Used By (0)

Twitter Connect
===============

[](#twitter-connect)

A Basic &amp; Light Twitter Connector for Laravel 4.1

Please contribute!

I know there are a lot of packages for this, or library to do it, just i feel it is too much to include, to much process for the goal i had. Just simple as that, Connect, Authorize, Get User Data, my application does not need to push to tw, in the near future, i'll add more things!

Installation
------------

[](#installation)

Using Composer [composer](https://getcomposer.org/download/).

You need to add the repo for the project first in your composer.json:

```
	"repositories": [
        {
            "type":"vcs",
            "url": "https://github.com/mikkezavala/twitter.git"
        }
    ]

```

In the same require the package:

```
	{
	    "require": {
			"mikke/twitter": ">=0.0.4",
	    }
	}

```

Then just run a composer update

```
	$ composer update

```

You can add the alias in your app/config/app.php

```
		'Twitter'  		  => 'Mikke\Twitter\Twitter',
```

Usage
-----

[](#usage)

It can be called in your controller wherever you want, just this a quick example, conecting and getting back basic information

You can create a config file, use existent one, or whatever you want to manage the keys, in my case i created a file called app/config/api.php and it looks like:

File: app/config/api.php

```
	return array(
		'twitter' => array(
			'api_key' => 'XXXXXXXXXXXXXXX',
			'api_secret' => 'XXXXXXXXXXXXXXXXXXXX',
			'api_callback' => 'http://some.com/callback',
			'api_token' => '',
			'api_token_secret' => '',
		)
	);
```

File: app/routes.php

```
	Route::get('/', function(){
		$twitter = new TwitterConnect(Config::get('api.twitter'));
		$twitter->authorize();
	});
	Route::get('twitter/validate', function(){

		Config::set('api.twitter.api_token', Input::get('oauth_token'));
		$twitter = new TwitterConnect(Config::get('api.twitter'));

		if($twitter->access_token(Input::get('oauth_verifier'))){
			$data = $twitter->user_data();
			print_r($data);
		}

	});
```

Contribute
----------

[](#contribute)

This is just a simple connector, you can fork me, or contribute to this, the idea is this to make it easier, and collaborative, in the next week i'll be releasing more connectors

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

5

Last Release

4390d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e187c7279bee5d8b6144a61a3f8df3fc117990af12c6e61552612771eb5b1d6?d=identicon)[mikkezavala](/maintainers/mikkezavala)

### Embed Badge

![Health badge](/badges/mikke-twitter/health.svg)

```
[![Health](https://phpackages.com/badges/mikke-twitter/health.svg)](https://phpackages.com/packages/mikke-twitter)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
