https://github.com/jsyspk/fs
Php FilesyStem Classes for PHP v7.4+
https://github.com/jsyspk/fs
filesystem php php-filesystem
Last synced: 4 months ago
JSON representation
Php FilesyStem Classes for PHP v7.4+
- Host: GitHub
- URL: https://github.com/jsyspk/fs
- Owner: jsyspk
- License: mit
- Created: 2019-07-13T08:12:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-29T07:18:42.000Z (almost 7 years ago)
- Last Synced: 2025-05-26T07:00:55.912Z (about 1 year ago)
- Topics: filesystem, php, php-filesystem
- Language: PHP
- Homepage: http://zenex.co.jp
- Size: 58.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FileSystem for PHP 7.4+
This is a simple oop library for php 7.4 or above
## Why?
A lot is happening in the php world right now but there are some fundamental issues that forced the creation of this lib and the ones that are going to follow.
- capitalization of file names and directories
- adding directories just for the sake of composer
- adding namespaces and title casing just for the composer
- interfaces just for the sake of interface
Composer has done a great job but it has also killed the namesapcing feature the way it should be used.
This lib is just a small step towards a better and cleaner php-world.
## Key features
- Simplicity
- OOP
- DDD
- DRY
## How to install
`composer require j/fs`
## How to use
Readable file
```
use J\FS; // or j\fs;
$rf = new ReadableFile("/some/readable/file.sample.txt");
// do whatever you want to do with this file
$rf->extesnion(); // will get txt
$rf->fullName(); // will get the file.sample.txt
$rf->mime(); // will get the mime, like text/plain
```
## Join us
Please give us a hand in creating a better php community