Download the PHP package folded/file without Composer
On this page you can find all versions of the php package folded/file. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package file
Short Description Manipulate files with functions for your web app.
License MIT
Informations about the package file
folded/history
Manipulate files with functions for your web app.
Summary
- About
- Features
- Requirements
- Installation
- Examples
- Version support
About
I created this library, to avoid having to throw exception in my code when I use the file functions.
Folded is a constellation of packages to help you setting up a web app easily, using ready to plug in packages.
- folded/action: A way to organize your controllers for your web app.
- folded/config: Configuration utilities for your PHP web app.
- folded/crypt: Encrypt and decrypt strings for your web app.
- folded/exception: Various kind of exception to throw for your web app.
- folded/history: Manipulate the browser history for your web app.
- folded/http: HTTP utilities for your web app.
- folded/orm: An ORM for you web app.
- folded/routing: Routing functions for your PHP web app.
- folded/request: Request utilities, including a request validator, for your PHP web app.
- folded/session: Session functions for your web app.
- folded/view: View utilities for your PHP web app.
Features
- Will throw an Exception if an error occured while using the functions
- Have the exact same signature as the native functions
Requirements
- PHP version >= 7.4.0
- Composer installed
Installation
In your root folder, run this command:
Examples
- 1. Open a file
- 2. Close a file
- 3. Delete a file
- 4. Write a CSV row to a file
- 5. Read a CSV row from a file
- 6. Rename a file
- 7. Write on file
1. Open a file
In this example, we will get an opened file.
2. Close a file
In this example, we will close an opened file.
3. Delete a file
In this example, we will delete an existing file.
4. Write a CSV row to a file
In this example, we will write a CSV row in a file.
5. Read a CSV row from a file
In this example, we will get a CSV row from a file. Subsequent calls will get the next rows from the file.
6. Rename a file
In this example, we will rename a file.
7. Write on file
In this example, we will write on an opened file.
If you need to get the number of bytes written, get the return of the function.
Version support
7.3 | 7.4 | 8.0 | |
---|---|---|---|
v0.1.0 | ❌ | ✔️ | ❓ |
v0.2.0 | ❌ | ✔️ | ❓ |