All Projects → dmirogin → yii2-js-urlmanager

dmirogin / yii2-js-urlmanager

Licence: MIT license
That extension provide a way to create urls from your frontend part.

Programming Languages

typescript
32286 projects
PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to yii2-js-urlmanager

yii2-pgsql
Improved PostgreSQL schemas for Yii2
Stars: ✭ 34 (-35.85%)
Mutual labels:  yii2, yii2-extension
yii2-elasticsearch
Elasticsearch client based on official Elasticsearch PHP library
Stars: ✭ 14 (-73.58%)
Mutual labels:  yii2, yii2-extension
yii2-jwt-tools
An easy way to configure JWT authentication and validation on Yii Framework 2 Projects
Stars: ✭ 22 (-58.49%)
Mutual labels:  yii2, yii2-extension
yii2-emoji
😄 this is a emoji extension of yii2.
Stars: ✭ 17 (-67.92%)
Mutual labels:  yii2, yii2-extension
yii2-vote
Provides voting for any model 👍 👎
Stars: ✭ 70 (+32.08%)
Mutual labels:  yii2, yii2-extension
yii2-cashier
Yii2 Cashier provides an interface to Stripe's subscription billing services.
Stars: ✭ 43 (-18.87%)
Mutual labels:  yii2, yii2-extension
yii2-array-query
Yii2 component that allows for searching/filtering the elements of an array.
Stars: ✭ 34 (-35.85%)
Mutual labels:  yii2, yii2-extension
yii2-translatable
Translatable behavior aggregates logic of linking translations to the primary model
Stars: ✭ 15 (-71.7%)
Mutual labels:  yii2, yii2-extension
background-translation-i18n
Based on the YII2 module to translate JSON formatted translation files on the web
Stars: ✭ 11 (-79.25%)
Mutual labels:  yii2, yii2-extension
yii2-rollbar
Rollbar for Yii2
Stars: ✭ 36 (-32.08%)
Mutual labels:  yii2, yii2-extension
ar-search
Provides unified search model for Yii ActiveRecord
Stars: ✭ 31 (-41.51%)
Mutual labels:  yii2, yii2-extension
yii2-sweet-submit
sweet sumit using sweetalert
Stars: ✭ 26 (-50.94%)
Mutual labels:  yii2, yii2-extension
yii2-newsletter
Module for saving user contacts from newsletter form to database
Stars: ✭ 17 (-67.92%)
Mutual labels:  yii2, yii2-extension
behavior-trait
Allows handling events via inline declared methods, which can be added by traits
Stars: ✭ 18 (-66.04%)
Mutual labels:  yii2, yii2-extension
yii2-stat
Yii2 Multi Web Statistic Module (yametrika, google-analytic, own db-counter)
Stars: ✭ 18 (-66.04%)
Mutual labels:  yii2, yii2-extension
yii2-bankcard-info
银行卡卡号分析(Yii2扩展)
Stars: ✭ 15 (-71.7%)
Mutual labels:  yii2, yii2-extension
content
Content management system for Yii2
Stars: ✭ 54 (+1.89%)
Mutual labels:  yii2, yii2-extension
yii2-mailqueue
Yii2 mail queue component for yii2-swiftmailer.
Stars: ✭ 15 (-71.7%)
Mutual labels:  yii2, yii2-extension
yii2-linkable-behavior
Yii2 behavior to help creating urls easier
Stars: ✭ 12 (-77.36%)
Mutual labels:  yii2, yii2-extension
yii2-ion-slider
Easily customizable range slider with skins support.
Stars: ✭ 21 (-60.38%)
Mutual labels:  yii2, yii2-extension

Latest Stable Version License

Yii2 js UrlManager

That extension provide a way to create urls from your frontend part.

Instalation

composer require dmirogin/yii2-js-urlmanager
  1. How to use
  2. PHP options
  3. Contributing
  4. Roadmap

How to use

  1. Add component to your application configuration
    'jsUrlManager' => [
        'class' => \dmirogin\js\urlmanager\JsUrlManager::class,
    ],
  2. Add component to bootstrap
    'bootstrap' => ['jsUrlManager'],
  3. Now you can use window.UrlManager or just UrlManager in your frontend part
       UrlManager.createUrl('foo/bar', {id: 10})

if you want to change assets position, use this

'assetManager' => [
    'bundles' => [
        \dmirogin\js\urlmanager\JsUrlManagerAsset::class => [
            'jsOptions' => [
                'position' => \yii\web\View::POS_END,
            ],
        ],
    ],
],

PHP options

configurationStringPosition - integer

Default value - \yii\web\View::POS_HEAD

The location to register configuration Frontend UrlManager string

'jsUrlManager' => [
    'class' => \dmirogin\js\urlmanager\JsUrlManager::class,
    'configurationStringPosition' => \yii\web\View::POS_END,
],

configureThroughVariable - boolean

Default value - false

Setting configuration through document variable urlManagerConfiguration

'jsUrlManager' => [
    'class' => \dmirogin\js\urlmanager\JsUrlManager::class,
    'configureThroughVariable' => true,
],

Contributing

  1. Clone project
  2. Write code
  3. Test
    npm run test
    
    ./vendor/bin/phpunit
    
  4. Build js
        npm run build
    

Roadmap

  • Disable or enable including rules in frontend
  • Creating absolute urls
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].