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 1mo agoCompare

[ Source](https://github.com/mikkezavala/twitter)[ Packagist](https://packagist.org/packages/mikke/twitter)[ RSS](/packages/mikke-twitter/feed)WikiDiscussions master Synced 3w 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

32

—

LowBetter than 69% of packages

Maintenance59

Moderate activity, may be stable

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

4437d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7265487?v=4)[Miguel Zavala](/maintainers/mikkezavala)[@mikkezavala](https://github.com/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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M278](/packages/illuminate-pipeline)[illuminate/broadcasting

The Illuminate Broadcasting package.

7127.2M208](/packages/illuminate-broadcasting)[illuminate/redis

The Illuminate Redis package.

8314.6M371](/packages/illuminate-redis)

PHPackages © 2026

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