lucasdavies / textlocal-demo-app
A demo app that demonstrates usage of the Textlocal service, written using Silex.
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- doctrine/dbal: ^2.5
- lucasdavies/textlocal-silex-provider: dev-master
- robmorgan/phinx: ^0.6.2
- silex/silex: ^2.0
- symfony/twig-bridge: ^3.1
- twig/twig: ^1.24
- vlucas/phpdotenv: ^2.3
Requires (Dev)
- symfony/var-dumper: ^3.1
This package is not auto-updated.
Last update: 2020-02-07 16:09:56 UTC
README
A simple Silex app that demonstrates the integration of the Textlocal API.
Developed locally on OS X running Laravel Valet and PHP 7, this super simple demo app makes use of the Silex microframework (v2) and a two-table SQLite database.
Utilises the following packages and libraries:
- PHP Dotenv - For environment variable configuration, specifically the Textlocal configuration
- Doctrine DBAL - For a very basic SQLite database
- Twig - Front end templating engine
- Textlocal Service Provider - Built for this demo, a Silex-specific service provider to expose the Textlocal API
- Phinx - For database migrations
- Symfony VarDumper Component - For basic output debugging
Installation
composer create-project lucasdavies/textlocal-demo-app -s dev
Update .env with your Textlocal credentials.
TEXTLOCAL_USERNAME="xxxxxx"
TEXTLOCAL_HASH="xxxxxx"
TEXTLOCAL_APIKEY="xxxxxx"