Skip to content

Commit

Permalink
ha
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikaige committed Sep 24, 2015
0 parents commit 57096ed
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Curl.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace kaikaige\curl;

/**
* This is just an example.
*/
class Curl {
public function run()
{
return "Hello!";
}
}
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
curl
====
rest curl

Installation
------------

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist kaikaige/yii2-curl "*"
```

or add

```
"kaikaige/yii2-curl": "*"
```

to the require section of your `composer.json` file.


Usage
-----

Once the extension is installed, simply use it in your code by :

```php
<?= \kaikaige\curl\AutoloadExample::widget(); ?>```
21 changes: 21 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "kaikaige/yii2-curl",
"description": "rest curl",
"type": "yii2-extension",
"keywords": ["yii2","extension","curl","kaikaige"],
"license": "MIT",
"authors": [
{
"name": "kaikaige",
"email": "[email protected]"
}
],
"require": {
"yiisoft/yii2": "*"
},
"autoload": {
"psr-4": {
"kaikaige\\curl\\": ""
}
}
}

0 comments on commit 57096ed

Please sign in to comment.