Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed May 20, 2015
1 parent 33ae232 commit 2e47c06
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 1 deletion.
14 changes: 14 additions & 0 deletions AutoloadExample.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace hscstudio\startup;

/**
* This is just an example.
*/
class AutoloadExample extends \yii\base\Widget
{
public function run()
{
return "Hello!";
}
}
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,31 @@
# yii2-startup
yii2-startup
============
Startup Application Template For Yii Framework 2.0

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

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

Either run

```
php composer.phar require --prefer-dist hscstudio/yii2-startup "*"
```

or add

```
"hscstudio/yii2-startup": "*"
```

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


Usage
-----

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

```php
<?= \hscstudio\startup\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": "hscstudio/yii2-startup",
"description": "Startup Application Template For Yii Framework 2.0",
"type": "yii2-extension",
"keywords": ["yii2","extension"],
"license": "GPL-3.0+",
"authors": [
{
"name": "Hafid Mukhlasin",
"email": "hafidmukhlasin@gmail.com"
}
],
"require": {
"yiisoft/yii2": "*"
},
"autoload": {
"psr-4": {
"hscstudio\\startup\\": ""
}
}
}

0 comments on commit 2e47c06

Please sign in to comment.