- Getting Started Guide
- Developing your Application
- Twitter APP Creation
1. Install the skeleton¶
First, create the application skeleton using composer create-project (you will need Composer):
$ php composer.phar create-project twilex/twilex-standard [project-folder] [version]
Where the version should be the latest stable release. Check the repository in order to get this information: https://github.com/twilex/twilex-standard
$ php composer.phar create-project twilex/twilex-standard MyTwitterApp 0.1.3
2. Configure the App settings¶
$ cd MyTwitterApp $ cp app/config/config.yml.dist app/config/config.yml
Now edit the config.yml file to configure its settings. You’ll need to provide the API keys from your Twitter App.
3. Run the App¶
Twilex includes a Vagrant setup built with Ansible.
Having these dependencies installed, you can just run:
$ vagrant up
Using a local web server¶
If you prefer using a local web server, it’s recommended that you create a vhost using a local domain, such as “myapp.local”. It makes easier for the callback URL configuration. In this scenario, you would use the URL http://myapp.local/connect.