Skip to content

Instantly share code, notes, and snippets.

@ahmedash95
Created June 3, 2017 23:57
Show Gist options
  • Save ahmedash95/724e1dc1f4b1963e24c48f4a38f15bbb to your computer and use it in GitHub Desktop.
Save ahmedash95/724e1dc1f4b1963e24c48f4a38f15bbb to your computer and use it in GitHub Desktop.
Mastring create Laravel Packages
<?php
class TwitterFeed {
private $consumerKey;
private $consumerSecret;
private $accessToken;
private $accessSecret
public function __constrcut($config){
$this->consumerKey = $config['consumer_key'];
$this->consumerSecret = $config['consumer_secret'];
$this->accessToken = $config['access_token'];
$this->accessSecret = $config['access_secret'];
}
// ... etc
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment