PHPackages                             pointybeard/helpers-functions-files - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. pointybeard/helpers-functions-files

ActiveLibrary[File &amp; Storage](/categories/file-storage)

pointybeard/helpers-functions-files
===================================

A collection of helpful functions related to creating and modifying files and directories

1.0.0.4(4y ago)1794↓91.7%1MITPHPPHP &gt;=7.2

Since Apr 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pointybeard/helpers-functions-files)[ Packagist](https://packagist.org/packages/pointybeard/helpers-functions-files)[ Docs](https://github.com/pointybeard/helpers-functions-files)[ RSS](/packages/pointybeard-helpers-functions-files/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (4)Used By (1)

PHP Helpers: File Functions
===========================

[](#php-helpers-file-functions)

- Version: v1.0.0
- Date: April 07 2020
- [Release notes](https://github.com/pointybeard/helpers-functions-files/blob/master/CHANGELOG.md)
- [GitHub repository](https://github.com/pointybeard/helpers-functions-files)

A collection of helpful functions related to creating and modifying files and directories

Installation
------------

[](#installation)

This library is installed via [Composer](http://getcomposer.org/). To install, use `composer require pointybeard/helpers-functions-files` or add `"pointybeard/helpers-functions-files": "~1.0"` to your `composer.json` file.

And run composer to update your dependencies:

```
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

```

### Requirements

[](#requirements)

This library makes use of the [pointybeard/helpers-exceptions-readabletrace](https://github.com/pointybeard/helpers-exceptions-readabletrace), [pointybeard/helpers-functions-flags](https://github.com/pointybeard/pointybeard/helpers-functions-flags), and [pointybeard/helpers-functions-cli](https://github.com/pointybeard/helpers-functions-cli) packages. They are installed automatically via composer.

To include all the [PHP Helpers](https://github.com/pointybeard/helpers) packages on your project, use `composer require pointybeard/helpers` or add `"pointybeard/helpers": "~1.2"` to your composer file.

Usage
-----

[](#usage)

This library is a collection of helpful functions related to creating and modifying files and directories. They are included by the vendor autoloader automatically. The functions have a namespace of `pointybeard\Helpers\Functions\Files`

The following functions are provided:

- `realise_directory(string $path, int $flags = null): void`
- `create_symbolic_link(string $target, ?string $destination, int $flags = null): void`

Example usage:

```
