Download the PHP package mulertech/file-manipulation without Composer

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

FileManipulation


Latest Version on Packagist GitHub Tests Action Status GitHub PHPStan Action Status Total Downloads Test Coverage


This package manipulates files and paths


Requirements


Installation

Two methods to install FileManipulation package with composer :

1. Add to your "composer.json" file into require section :

and run the command :

2. Run the command :


Usage


Open env file : (return content of file)

// key1=value1


Parse env file : (return parsed content of file)

// ['key' => 'value', 'key2' => 'value2']


Load env file : (load env file in environment variables)


Open json file : (return content of file)

// ['key' => 'value', 'key2' => 'value2']


Open php file : (return content of file)

// ['key' => 'value', 'key2' => 'value2']


Open yaml file : (return content of file)

// ['key' => 'value', 'key2' => 'value2']


Open other file : (return content of file)

// ['key' => 'value', 'key2' => 'value2']


Save env/json/php/yaml file :


Save other file :


Php file class name :

// ClassName


Php get class names :

// ['ClassName', 'ClassName2']


Php get class attribute named "Attribute::class" :

// return ReflectionAttribute of Attribute::class


Php get instance of class attribute named "Attribute::class" :

// return instance of Attribute::class


Php get properties attributes :

// return array of ReflectionProperty of properties


Php get instance of properties attributes named "Attribute::class" :

// return array of property name => instances of Attribute::class


Php get methods attributes :

// return array of ReflectionMethod of methods


Php get instance of methods attributes named "Attribute::class" :

// return array of method name => instances of Attribute::class


Get first occurrence of a string in a file :

// return line of first occurrence (int)


Get last occurrence of a string in a file :

// return line of last occurrence (int)


Get line number :

// return content of line (string)


Convert file :

// convert json file to yaml file


Count lines :

// return number of lines of file (int)


Insert content at line number :

// insert content (one or more lines) at line number 2 and move other lines after


Date path :

// return path of path/year/month (example : path/2022/02)

Date filename :

// return filename with date (example : 20220201-suffix)

Date time filename :

// return filename with date and time (example : 20220201-1200-suffix)


All versions of file-manipulation with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
symfony/yaml Version ^8.1
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 mulertech/file-manipulation contains the following files

Loading the files please wait ...