https://github.com/webforge-labs/webforge-utils
A basic library for file system and utils
https://github.com/webforge-labs/webforge-utils
Last synced: about 1 year ago
JSON representation
A basic library for file system and utils
- Host: GitHub
- URL: https://github.com/webforge-labs/webforge-utils
- Owner: webforge-labs
- License: mit
- Created: 2015-07-20T13:34:00.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-06-27T07:28:23.000Z (about 3 years ago)
- Last Synced: 2025-03-06T21:47:27.726Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 178 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webforge-utils
## whats included
- DateTime and Time classes for an advanced (and more concise) interface for the PHP::DateTime classes
- A full functional File and Directory implementation that abstracts a lot of PHP file funtions
- supports nearly every way to write a file path (and convert):
- windows D:\www\something.php
- unix /some/path
- wrappers: vfs://some/file/topath
- windows cygin /cydrive/d/www/someting.php
- windows shares \\\\psc-laptop\shared\www\something.php
- unix style windows paths (sublime and others): /D/www/something.php
- copy dirs and files recursively
- find files recursively
- Commonly used Exceptions with better semantics and debug output (FileNotFound, NotImplemented, Deprecated)
- Some simple Utils to debug and dump variables
- A bunch of useful String and Array functions
## usage
- [Dir and File API](docs/dir-and-file.md)
## installation
Use [Composer](http://getcomposer.org) to install.
```
composer require webforge/utils
```
## migrate to 2.0.x
- use php 8.1
## migrate to 1.1.x
`Webforge\Common\String` was renamed to `Webforge\Common\StringUtil`