Download the PHP package reun/nanomanager without Composer

On this page you can find all versions of the php package reun/nanomanager. 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 nanomanager

Nano File Manager

Supported PHP Version Packagist Version

Nano File Manager (or Nanomanager for short) is a minimalist PHP file manager that can be used to quickly add simple uploads and file management to any PHP powered website.

❗ Caution

Nanomanager doesn't include any authentication! Therefore it is very important to manually secure access to it.

Features

Installation

Requirements

With Composer

PHAR (single file install)

If you're not using Composer or simply want Nanomanager in a single self-contained file, you can download the latest PHAR from releases and put it anywhere outside your public folder. Then just require it whenever you want to use it.

Usage

To use Nanomanager, create a new instance by passing configuration to constructor and call run() which returns a string that can be outputted to browser.

Framework integration

You can manually pass request method and body to run() as optional arguments to integrate Nanomanager with any existing PHP framework.

💡 Tip

Check out tests/integration directory for additional usage examples.

Configuration

PHP API configuration

PHP API is configured with constructor parameters. Check out Nanomanager.php for full list of options.

Frontend configuration

Frontend is configured with HTML attributes. Check out Props interface in NanoFileManager.svelte for full list of options.

If you're not embedding frontend yourself, you can customize frontend with frontendAttributes parameter.

Embedding Nanomanager frontend to existing page

Nanomanager frontend can easily be embedded to any existing HTML page or JS framework as a custom element.

The custom element is loaded from nanomanager.js file, which can be found in vendor/reun/nanomanager/packages/frontend/dist/nanomanager.js if you installed Nanomanager with Composer. For PHAR installation, you can copy the file from releases.

Using <script> tag in HTML file

To embed Nanomanager into any HTML page, you need to copy nanomanager.js into publicly accessible asset directory and include it as a script tag. It is recommended to rename the file to include version number to avoid caching issues.

💡 Tip

Check out tests/integration/framework-test for a complete example.

Using import in JS

You can import Nanomanager in JS to load the custom element. We're using Vue as an example, but it works with any JS framework or even without one.

Frontend customization and theming with CSS

<nano-file-manager> exposes its root element as part attribute with the name body. You can target this element with nano-file-manager::part(body) CSS selector to set theme variables or use custom CSS. See NanoFileManager.svelte for a full list of available theme variables and index.html in framework integration test as an example.

Additional tips

Setting URL dynamically

You can utilize $_SERVER to set URL dynamically when configuring Nanomanager. This is useful for development and testing.

ℹ️ Important

It is recommended to set URL manually in production instead of relying on $_SERVER global. This is also illustrated in the example below.

Development

See docs/development for development documentation.


All versions of nanomanager with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
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 reun/nanomanager contains the following files

Loading the files please wait ...