You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,23 +19,20 @@ To install::
19
19
1. Download the `composer.phar` executable or use the installer.
20
20
::
21
21
curl -sS https://getcomposer.org/installer | php
22
-
2. Create a composer.json defining your dependencies. Note that this example is a short version for applications that are not meant to be published as a packages themselves.
22
+
23
+
2. Install this package with comopser:
23
24
::
24
-
{
25
-
"require": [
26
-
"embedly/embedly-php"
27
-
]
28
-
}
29
-
3. Run Composer: ``php composer.phar install``
25
+
``php composer.phar require embedly/embedly-php``
30
26
31
27
Examples
32
28
^^^^^^^^
33
29
34
-
::
30
+
.. code-block:: php
35
31
36
32
<?php
37
33
require_once('Embedly/src/Embedly/Embedly.php'); // if using pear
38
34
// require_once('src/Embedly/Embedly.php'); // if using source
35
+
// require_once(__DIR__ . '/vendor/autoload.php'); // if using Composer
39
36
40
37
$api = new Embedly\Embedly(array('user_agent' => 'Mozilla/5.0 (compatible; mytestapp/1.0)'));
0 commit comments