Download the PHP package nurmanhabib/quotatool without Composer

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

Welcome to QuotaTool!

QuotaTool merupakan aplikasi sederhana untuk mengelola quota pengguna pada sistem Linux, Mac OS X, FreeBSD, OpenBSD, NetBSD, Solaris, dan AIX. Repository resminya berada di https://github.com/ekenberg/quotatool.

Pada package ini hanya sebuah wrapper untuk digunakan pada Laravel.


Instalasi

Install dengan Composer

Cukup sederhana, jalankan perintah berikut.

composer require nurmanhabib/quotatool

Tambahkan Service Provider

Tambahkan Nurmanhabib\QuotaTool\QuotaToolServiceProvider ke dalam file di config/app.php pada array providers.

'providers' = [
    ...,
    ...,

    'Nurmanhabib\QuotaTool\QuotaToolServiceProvider',
];

Install quota

Pastikan sistem Anda sudah terinstall quota dan quotatool.

apt-get install quota quotatool

Untuk konfigurasinya, bagi yang menggunakan Linux Ubuntu dapat mengikuti tutorial https://www.digitalocean.com/community/tutorials/how-to-enable-user-and-group-quotas

Berikan Hak Akses quotatool

Package ini menggunakan perintah shell script untuk mengakses quotatool dengan sudo. Untuk itu modifikasi dengan perintah berikut.

sudo visudo

Tambahkan baris berikut pada baris dimana saja tidak masalah.

...
%www-data   ALL=(ALL) NOPASSWD: /usr/sbin/quotatool
...

Baris tersebut mengijinkan group www-data mengeksekusi sudo /usr/sbin/quotatool tanpa password.


Penggunaan

Contoh Penggunaan

Set 50Gb soft and hard disk usage limits for user nurmanhabib on filesystem /home

QuotaTool::uid('nurmanhabib')->limit('50G', '50G');

setelah dilakukan output dengan QuotaTool::raw() akan menghasilkan sebagai berikut.

quotatool -u nurmanhabib -b -q 50G -l 50G /home

Group ID

Untuk memberikan quota pada group dapat menggunakan method gid()

QuotaTool::gid('1001');
QuotaTool::gid('www-data');

Filesystem

Secara default, quotatool berada pada filesystem /home. Jika quotatool berada pada filesystem lain, Anda dapat menambahkan method filesystem().

QuotaTool::uid('nurmanhabib')->limit('50G', '50G')->filesystem('/');

setelah dilakukan output dengan QuotaTool::raw() akan menghasilkan sebagai berikut.

quotatool -u nurmanhabib -b -q 50G -l 50G /

Limit Block

Untuk menambahkan limit block dengan 10000 soft dan 10240 hard

QuotaTool::uid('nurmanhabib')->limit(10000, 10240);

atau

QuotaTool::uid('nurmanhabib')->limit(10000, 10240, 'block');

Limit Inode

Untuk menambahkan limit inode dengan 10000 soft dan 10240 hard

QuotaTool::uid('nurmanhabib')->limit(10000, 10240, 'inode');

Grace Period

Belum tersedia :)

Eksekusi Quota

Untuk menerapkan quota ke user atau group

QuotaTool::run();

Dump Info Quota User

Untuk melihat info quota user atau group

QuotaTool::run();

All versions of quotatool with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
illuminate/support Version 4.*|5.*
symfony/process Version 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 nurmanhabib/quotatool contains the following files

Loading the files please wait ...