Download the PHP package netherjs/nui without Composer

On this page you can find all versions of the php package netherjs/nui. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package nui

NUI (Nether UI)

The JS UI framework by people who hate JavaScript, for people who hate JavaScript.

I am really surprised at how much I was able to do with so little code. Why do JS frameworks need to be giant and overly complicated? Of course, I cheated, this depends on jQuery, but, still, compared to like jQuery UI...

Installing Like The Common Rabble

Get this source anyway you want - git clone, download the zip, whatever. Copy the contents of the dist directory to where you want to serve the files from.

Installing with Composer

If you are using a PHP project with Composer you can deploy this with OneScript. Pretend our project is /opt/website with the public webroot as /opt/website/www and we want to deploy NUI to /opt/website/www/share/nui - this in turn making /share/nui/nui.js accessible for the webpage...

$ composer require netherjs/nui
$ php vendor/bin/nether-onescript vendor/netherjs/nui --deploy=www/share/nui

Any time you update NUI just rerun the OneScript command and it will build and re-deploy the updates to your public web.

Overview

NUI.Overlay

Creates a translucent overlay on top of the page to stop access to what is below.

NUI.Dialog

Creates a dialog widget, which you can shove in the overlay.

NUI.Button

Creates a button widget, which you can shove in the dialog.

Sample

it working

Full Size: http://i.imgur.com/hYN2O5J.png

<html>
<head>
    <title>nui test</title>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <link rel="stylesheet" type="text/css" href="/nui/dist/nui.css" />
    <script type="text/javascript" src="/nui/dist/nui.js.php"></script>
    <link rel="stylesheet" type="text/css" href="" />
</head>
<body>

<div id="MyInputForm" class="NUI-Hidden">
    <p>We could have jQuery built this form live, have it in a saved factory,
    built a class emulating NUI classes, or just have had it embedded like right
    now.</p>
    <div class="NUI-Center">Enter Stuff: <input id="MyInputField" type="text" /></div>
</div>

<script type="text/javascript">
var ModalOverlay = new NUI.Overlay({
    Content: new NUI.Dialog({
        Title:'Hello Human',
        Content:jQuery('#MyInputForm').show(),
        Buttons: [
            new NUI.Button({ Label:'Accept', Class:'NUI-Dialog-Accept' }),
            new NUI.Button({ Label:'Cancel', Class:'NUI-Dialog-Cancel' })
        ],
        OnCancel: function(){
            ModalOverlay.Destroy();
            return;
        },
        OnAccept: function(){
            LocalSaveData(function(){ ModalOverlay.Destroy(); })
            return;
        }
    })
});

function LocalSaveData(callback) {
    var input = jQuery('#MyInputField').val();

    /*//
    jQuery.post(
        '/your/api/whatever',
        { Field:input },
        function(result) {
            if(result && !result.Error)
            callback();
        }
    );
    //*/

    alert(input);
    callback();
    return;
}
</script>

</body>
</html>

All versions of nui with dependencies

PHP Build Version
Package Version
Requires netherphp/onescript Version ^3.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package netherjs/nui contains the following files

Loading the files please wait ....