-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
77 lines (52 loc) · 1.99 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
twilioKit - Twilio Starter Kit for Zend Framework
==================================================
Original code - copyright (c)2010 Michael Kimsal
All other code copyright by the respective projects
twilioKit provides a basic skeleton for bringing
together a Twilio library, Doctrine, phpunit and Zend Framework
in one 'ready to go' set up with example code for Twilio services.
Doctrine 1.2 and ZF 1.10.5 are provided in the /library folder,
Twilio REST Client adapted from twilio.com helper library.
Getting started
===============
ZF libraries are provided in a tgz format. You'll need to untar/unzip
them before starting.
cd /path/to/zfkit/library
tar -xzf Zend.tgz
-or-
If you want to provide your own ZF library, symlink or
copy the Zend library from ZF to live in the zfkit/library folder.
ln -s /path/to/zfkit/library/Zend /path/to/real/zendframework/library/Zend
or
cp -r /path/to/real/zendframework/library/Zend /path/to/zfkit/library/
-------
You may wish to make your /public/ folder the document root
of a virtual host for nicer URLs.
Something like this would be appropriate
<VirtualHost *:80>
DocumentRoot "/path/to/git/checkout/of/zfkit/public"
ServerName <your_host_name_here>
Options Indexes MultiViews FollowSymLinks
<Directory "/path/to/git/checkout/of/zfkit">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
-------
DB setup
Go in to the scripts directory and run the ./run script
This will automatically drop/create the database, create a schema
and insert sample data, based on the Doctrine data in /application/data
(specifically, the schema.yml and fixtures/data.yml files)
-------
Config setup
For Twilio to work, you'll need to put in your account SID and auth Token from
your Twilio account dashboard in to the application/configs/application.ini file.
-------
Visit your hostname
http://<your_host_name_here>/
License
=======
twilioKit is released under a BSD license and is based on ZFKit.