2017 © Pedro Peláez
 

library yii2-libs

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

image

winternet-studio/yii2-libs

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  • Thursday, August 2, 2018
  • by winternet
  • Repository
  • 1 Watchers
  • 0 Stars
  • 138 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 55 Versions
  • 5 % Grown

The README.md

Yii2 Libs

Different Yii2 libraries for helping you to write less code and organize it better., (*1)

JsHelper is for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code. See the source code for understanding the purpose of this library., (*2)

Please note that this library is primarily for my own use and might be lacking proper documentation and overall explanation of things, even though I try to document everything in the way I code and write comments. Also be aware that features might change without proper notice even though I try to always make code backwards compatible., (*3)

Installation

The preferred way to install this extension is through composer., (*4)

First install Yii2, then:, (*5)

composer require winternet-studio/yii2-libs

Usage

Once the extension is installed, simply use it in your code by :, (*6)


echo JsHelper::standardModal(['id' => 'StandardModal2']);
?>

Javascript code:, (*7)

// To make an AJAX call:

appJS.ajax({
    url: '/your/url',
    type: 'POST',
    dataType: 'json',
    data: {var1: 'something', var2: 'something else'}
});

// To show a standard modal (either initAjax() or initModal() must have been called beforehand):

appJS.showModal('Here goes the <b>content</b> for your modal.');

// To show a modal, specifying more options:

appJS.showModal({
    title: 'Modal title goes here',
    html: 'Here goes the <b>content</b> for your modal.',
    customModalSelector: '#StandardModal2',
    openCallback: function(modalRef) {
        // code for before modal is being opened
        // NOTE: not reexecuted when a closed modal is shown again (set up standard Bootstrap modal events for that)
    },
    openedCallback: function(modalRef) {
        // code for after modal has been opened
        // NOTE: not reexecuted when a closed modal is shown again (set up standard Bootstrap modal events for that)
    },
    closeCallback: function(modalRef) {
        // code for before modal is being closed
        // NOTE: not reexecuted when a closed modal is shown again (set up standard Bootstrap modal events for that)
    },
    closedCallback: function(modalRef) {
        // code for after modal has been closed
        // NOTE: not reexecuted when a closed modal is shown again (set up standard Bootstrap modal events for that)
    }
});

See the source code to understand how and why to use these libraries., (*8)

The Versions

02/08 2018

dev-master

9999999-dev

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+ LGPL-3.0-or-later

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

01/08 2018

v1.6.27

1.6.27.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0-or-later

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

20/07 2018

v1.6.26

1.6.26.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0-or-later

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

07/06 2018

1.6.25

1.6.25.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0-or-later

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

30/04 2018

v1.6.24

1.6.24.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0-or-later

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

29/04 2018

v1.6.23

1.6.23.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0-or-later

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

29/04 2018

v1.6.22

1.6.22.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0-or-later

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

09/04 2018

v1.6.21

1.6.21.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0-or-later

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

05/04 2018

v1.6.20

1.6.20.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0-or-later

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

23/03 2018

v1.6.19

1.6.19.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0-or-later

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

22/03 2018

v1.6.18

1.6.18.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0-or-later

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

04/03 2018

v1.6.17

1.6.17.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0-or-later

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

25/02 2018

v1.6.16

1.6.16.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0-or-later

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

24/01 2018

v1.6.15

1.6.15.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0-or-later

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

24/01 2018

v1.6.14

1.6.14.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

13/12 2017

v1.6.13

1.6.13.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

13/12 2017

v1.6.12

1.6.12.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

07/12 2017

v1.6.11

1.6.11.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

19/11 2017

v1.6.10

1.6.10.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

19/11 2017

v1.6.9

1.6.9.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

14/11 2017

v1.6.8

1.6.8.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

10/10 2017

v1.6.7

1.6.7.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

10/10 2017

v1.6.6

1.6.6.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

08/10 2017

v1.6.5

1.6.5.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

03/10 2017

v1.6.4

1.6.4.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

02/10 2017

v1.6.3

1.6.3.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

29/09 2017

v1.6.2

1.6.2.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

13/09 2017

v1.6.1

1.6.1.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

18/08 2017

v1.6.0

1.6.0.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

08/08 2017

v1.5.5

1.5.5.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

07/08 2017

v1.5.4

1.5.4.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

04/08 2017

v1.5.3

1.5.3.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

03/08 2017

v1.5.2

1.5.2.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

03/08 2017

v1.5.1

1.5.1.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

03/08 2017

v1.5.0

1.5.0.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

31/07 2017

v1.4.1

1.4.1.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

31/07 2017

v1.4.0

1.4.0.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

28/07 2017

v1.3.11

1.3.11.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

27/07 2017

v1.3.10

1.3.10.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

27/07 2017

v1.3.9

1.3.9.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

26/07 2017

v1.3.8

1.3.8.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

12/07 2017

v1.3.7

1.3.7.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

11/07 2017

v1.3.6

1.3.6.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

11/07 2017

v1.3.5

1.3.5.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

11/07 2017

v1.3.4

1.3.4.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

30/06 2017

v1.3.3

1.3.3.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

26/06 2017

v1.3.2

1.3.2.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

23/06 2017

v1.3.1

1.3.1.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

21/06 2017

v1.3.0

1.3.0.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

18/06 2017

v1.2.0

1.2.0.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

11/06 2017

v1.1.0

1.1.0.0

Misc helpful libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

09/06 2017

v1.0.0.0

1.0.0.0

Misc libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

09/06 2017

0.3

0.3.0.0

Misc libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

09/06 2017

0.2

0.2.0.0

Misc libraries for Yii2. Eg. a helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal

09/06 2017

0.1

0.1.0.0

Helper for simplified handling of common tasks with AJAX, modals, and display of messages from Javascript code

  Sources   Download

LGPL-3.0+

The Requires

 

by Allan Jensen

extension yii2 javascript ajax modal