From 57b57a06d41ef0333109159538e1cde2958b745e Mon Sep 17 00:00:00 2001 From: Levan Velijanashvili Date: Fri, 17 Oct 2014 22:55:30 +0400 Subject: [PATCH] Update README.md --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3300dda..36a9c42 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,9 @@ Google Translate API free PHP class. Translates totally free of charge. ## Installation -Installing this package through [Composer](https://getcomposer.org/). Edit your project's `composer.json` file to require `stichoza/google-translate-php`. +**New!** Now available via [Composer](https://getcomposer.org/) :sunglasses: + +Install this package through [Composer](https://getcomposer.org/). Edit your project's `composer.json` file to require `stichoza/google-translate-php`. ```json "require": { @@ -13,19 +15,25 @@ Installing this package through [Composer](https://getcomposer.org/). Edit your } ``` +**Or** run a command in your command line: + +``` +composer require stichoza/google-translate-php +``` + ## Usage Instantiate GoogleTranslate object ```php $tr = new GoogleTranslate("en", "ka"); ``` -or set/change languages later +Rr set/change languages later ```php $tr = new GoogleTranslate(); $tr->setLangFrom("en"); $tr->setLangTo("ka"); ``` -translate sentences +Translate sentences ```php echo $tr->translate("Hello World!"); ```