PHPackages                             maswahyu/yii2-basic-custom - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. maswahyu/yii2-basic-custom

ActiveProject[Framework](/categories/framework)

maswahyu/yii2-basic-custom
==========================

Yii 2 Basic with Gulp and BrowserSync

061[7 PRs](https://github.com/maswahyu/yii2-basic-custom/pulls)PHP

Since May 26Pushed 3y ago1 watchersCompare

[ Source](https://github.com/maswahyu/yii2-basic-custom)[ Packagist](https://packagist.org/packages/maswahyu/yii2-basic-custom)[ RSS](/packages/maswahyu-yii2-basic-custom/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (8)Used By (0)

This is customized Yii 2 Basic Project Template integrated with Gulp and BrowserSync.

DIRECTORY STRUCTURE
-------------------

[](#directory-structure)

```
  assets/             contains assets definition
  commands/           contains console commands (controllers)
  config/             contains application configurations
  controllers/        contains Web controller classes
  mail/               contains view files for e-mails
  models/             contains model classes
  runtime/            contains files generated during runtime
  tests/              contains various tests for the basic application
  themes/              containes themes for the Web application
  vendor/             contains dependent 3rd-party packages
  views/              contains view files for the Web application
  web/                contains the entry script and Web resources

```

### Installation

[](#installation)

You can then install this project template using the following command:

```
$ php composer.phar create-project --prefer-dist --stability=dev maswahyu/yii2-basic-custom basic-custom

```

Then install the packages required by npm.

```
$ npm install

```

Now you should be able to access the application through the following URL, assuming `basic-custom` is the directory directly under the Web root.

```
http://localhost/basic-custom/web/

```

### Asset Bundle &amp; Theming

[](#asset-bundle--theming)

Asset Bundles are stored under `themes` folder with the following directory structure.

```
  |-- themes
      |-- ThemeA
      |-- ThemeB            theme name
          |-- assets        contains the source assets
              |-- scss
              |-- js
              |-- fonts
              |-- img
          |-- dist          contains the generated assets that will be used by Yii
              |-- css
              |-- js
              |-- fonts
              |-- img
          |-- views
              |-- layouts   contains the layouts available for the theme
              |-- site      contains the view files for the controller `site`
              |-- ... other view folder
          |-- ThemeAsset.php

```

In order to use theme, the configuration is as follow.

```
        'view' => [
            // theming configurations
            'theme' => [
                'basePath' => '@themes/ThemeB',
                'baseUrl' => '@web/themes/ThemeB',
                'pathMap' => [
                    '@app/views' => '@themes/ThemeB/views',
                ],
            ],
        ],

```

### Using Gulp &amp; BrowserSync

[](#using-gulp--browsersync)

To automate building the assets while working on Frontend, you can run gulp to automatically build the assets, watch for changes and reload the browser.

```
$ gulp
[00:14:40] Using gulpfile C:\xampp\htdocs\saga\sahabatufs-revamp\gulpfile.js
[00:14:40] Starting 'default'...
[00:14:40] Starting 'styles'...
[00:14:40] Starting 'scripts'...
[00:14:40] Finished 'scripts' after 20 ms
[00:14:43] Finished 'styles' after 2.8 s
[00:14:43] Starting 'serve'...
[Browsersync] Proxying: https://new.sufs.local
[Browsersync] Access URLs:
 ---------------------------------------
       Local: https://localhost:3000
    External: https://192.168.100.3:3000
 ---------------------------------------
          UI: http://localhost:3001
 UI External: http://localhost:3001
 ---------------------------------------

```

This will open the project in browser. If you make changes to any of `.scss`, `.js`, `views` and save the files, the browser will automatically reloaded to shows the changes.

To change the theme, you need to configure `config/web.php` and `gulpfile.js` with the theme you wanna use. The former is used by Yii and the later is used by gulp to build the assets.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 57.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d326ec127fe6e971b235d9f6f05a8eeb9ba405c675e0378eda3aca9c28e077ec?d=identicon)[wahyu1790](/maintainers/wahyu1790)

---

Top Contributors

[![maswahyu](https://avatars.githubusercontent.com/u/2834359?v=4)](https://github.com/maswahyu "maswahyu (11 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")

### Embed Badge

![Health badge](/badges/maswahyu-yii2-basic-custom/health.svg)

```
[![Health](https://phpackages.com/badges/maswahyu-yii2-basic-custom/health.svg)](https://phpackages.com/packages/maswahyu-yii2-basic-custom)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M190](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M255](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M591](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M120](/packages/cakephp-chronos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
