Download the PHP package infocyph/pathwise without Composer

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

Pathwise: File Management Made Simple

Codacy Badge Libraries.io dependency status for GitHub repo Packagist Downloads License: MIT Packagist Version Packagist PHP Version Support GitHub code size in bytes

Pathwise is a robust PHP library designed for streamlined file and directory management. With features like safe reading/writing, metadata extraction, path utilities, compression, and permission management, it ensures a developer-friendly experience while handling complex file operations.

Table of Contents

  1. Introduction
  2. Prerequisites
  3. Installation
  4. Features Overview
  5. FileManager
    • SafeFileReader
    • SafeFileWriter
    • FileOperations
    • FileCompression
  6. DirectoryManager
    • DirectoryOperations
  7. Utils
    • PathHelper
    • PermissionsHelper
    • MetadataHelper
  8. Handy Functions
    • File and Directory Utilities
  9. Support
  10. License

Prerequisites

Installation

Pathwise is available via Composer:

Requirements:


Features Overview

FileManager

The FileManager module provides classes for handling files, including reading, writing, compressing, and general file operations.

SafeFileReader

A memory-safe file reader supporting various reading modes (line-by-line, binary chunks, JSON, CSV, XML, etc.) and iterator interfaces.

Key Features

Usage Example

SafeFileWriter

A memory-safe file writer with support for various writing modes, including CSV, JSON, binary, and more.

Key Features

Usage Example

FileOperations

General-purpose file handling class for creating, deleting, copying, renaming, and manipulating files.

Key Features

Usage Example

FileCompression

Provides utilities for compressing and decompressing files using the ZIP format with optional password protection and encryption.

Key Features

Usage Example

DirectoryManager

The DirectoryManager module offers tools for handling directory creation, deletion, and traversal.

DirectoryOperations

Provides comprehensive tools for managing directories, including creation, deletion, copying, and listing contents.

Key Features

Usage Example

Utils

Utility classes for managing paths, permissions, and metadata.

PathHelper

Provides utilities for working with file paths, including joining, normalizing, and converting between relative and absolute paths.

Key Features

Usage Example

PermissionsHelper

Handles file and directory permissions, ownership, and access control.

Key Features

Usage Example

MetadataHelper

Extracts metadata for files and directories, such as size, timestamps, MIME type, and more.

Key Features

Usage Example

Handy Functions

File and Directory Utilities

Pathwise provides standalone utility functions to simplify common file and directory operations.

1. Get Human-Readable File Size

Formats a file size in bytes into a human-readable format (e.g., 1.23 KB, 4.56 GB).

Usage Example:

2. Check if a Directory is Empty

Checks whether the given directory contains any files or subdirectories.

Usage Example:

3. Delete a Directory Recursively

Deletes a directory and all its contents (files and subdirectories).

Usage Example:

4. Get Directory Size

Calculates the total size of a directory, including all its files and subdirectories.

Usage Example:

5. Create a Directory

Creates a directory (including parent directories) with specified permissions.

Usage Example:

6. List Files in a Directory

Lists all files in a directory, excluding subdirectories.

Usage Example:

7. Copy a Directory Recursively

Copies a directory and all its contents to a new location.

Usage Example:


Support

Having trouble? Create an issue!

License

Pathwise is licensed under the MIT License.


All versions of pathwise 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 infocyph/pathwise contains the following files

Loading the files please wait ....