Download the PHP package nazir/iofiles without Composer

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

IOFiles

Menghandle beberapa hal umum yang berhubungan dengan file seperti save, read, move, upload, force download, zip, extract, resize image, crop image, watermark, dsb. Tidak semua fungsi dalam Filesystem PHP ada dalam class ini.

Tabel Isi / Table of Contents

  1. Inisialisasi Object Baru
  2. Operasi Pada File
  3. Upload File
  4. Operasi ZIP
  5. Operasi Gambar / Image

Instalasi / Installation

Unduh file dalam folder scr atau gunakan composer dengan perintah:

Penggunaan / Usage

- Inisialisasi Object Baru

setelah ini object menggunakan beberapa public method sebagai berikut:

- Operasi Pada File

a. Menggandakan file (copy)

b. Memindah file ke lokasi baru (move)

c. Mengubah nama file (rename)

d. Menghapus file (delete)

e. Memaksa browser mendownload file (force download)

Fungsi ini harus dipanggil sebelum ada output apapun karena dia akan mengeset beberapa header.

f. Gzip file

File hasil gzip akan diletakkan bersebelahan dengan file sumber dengan nama filesumber.gz

g. Lihat properti file (properties)

$flag bisa berisi string salah satu atribut berikut atau array berisi kumpulan atribut (jika semua semua atribut akan di-return):

Contoh penggunaan yang valid adalah:

h. Lihat ekstensi file (extension)

Mendapatkan ekstensi dari file di UPPERCASE. Contoh index.php -> 'PHP'

i. Mencari file (find)

$directory adalah folder dimana file dicari, defaultnya adalah _currentdirectory (.). Return array nama file jika ada file yang sesuai.

j. Mencari file (search)

k. Membaca isi file (read)

l. Menulis data ke file (write)

$mode bisa diisi dengan nilai 'ab' alias append (default), 'wb' alias overwrite, dsb. Warning: tidak ada validasi jika mode yang dimasukkan invalid. Lihat dokumentasi di PHP untuk mode yang valid.

- Upload File

a. Konfigurasi (configuration)

Harus dipanggil sebelum proses upload dimulai. $config berisi array dengan nilai valid sebagai berikut:

Contoh penggunaan yang valid adalah:

b. Proses Upload (uploading)

$field adalah nama yang dikirim untuk input file (defaultnya: 'userfile'). Pastikan memanggil fungsi ini SETELAH $iofiles->upload_config().

c. Mendapatkan parameter upload (get params)

Beberapa informasi saat upload dapat dipanggil dengan menggunakan fungsi ini menggunakan nilai sebagai berikut:

d. Mendapatkan error saat upload (show error)

- Operasi ZIP

a. Mampatkan file dengan ZIP (zip compress)

$file bisa berisi string (satu file) atau array (beberapa file). Hasil zip akan diletakkan bersebelahan dengan file sumber.

b. Ekstraksi ZIP (zip extraction)

- Operasi Gambar / Image

a. Konfigurasi (configuration)

Harus dipanggil sebelum proses operasi gambar dimulai. $config berisi array dengan nilai valid sebagai berikut:

b. Memotong gambar (crop)

c. Mengubah ukuran gambar (resize)

d. Memutar gambar (rotate)

e. Lakukan watermark (image watermark)

f. Efek berkaca (image mirror)

g. Dapatkan error saat proses (show error)

h. Bersihkan proses (clear)

Untuk memastikan bahwa semua bersih maka panggil fungsi ini ketika proses selesai atau ketika akan melakukan proses operasi gambar lagi.

Kredit? / Credits

Beberapa fungsi diadaptasi dari kode di CodeIgniter

License / Lisensi

MIT Free Software


All versions of iofiles with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.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 nazir/iofiles contains the following files

Loading the files please wait ....