Skip to content

Commit 5d4e128

Browse files
dokipenquentin-st
authored andcommitted
README.rst: specify language in codeblocks to benefit from syntax highlighting
2 parents a2cbf6d + 11a9cb5 commit 5d4e128

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

README.rst

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,20 @@ To install::
1919
1. Download the `composer.phar` executable or use the installer.
2020
::
2121
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:
2324
::
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``
3026

3127
Examples
3228
^^^^^^^^
3329

34-
::
30+
.. code-block:: php
3531
3632
<?php
3733
require_once('Embedly/src/Embedly/Embedly.php'); // if using pear
3834
// require_once('src/Embedly/Embedly.php'); // if using source
35+
// require_once(__DIR__ . '/vendor/autoload.php'); // if using Composer
3936
4037
$api = new Embedly\Embedly(array('user_agent' => 'Mozilla/5.0 (compatible; mytestapp/1.0)'));
4138

0 commit comments

Comments
 (0)