Download the PHP package cmrcx/phptidy without Composer

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

====== phptidy README ======

=== Description ===

This is a little tool for formatting PHP code. It aims to make the code better readable and thus better understandable.

Unlike other beautifiers, phptidy does not completely reformat the code and remove formatting, which was intended by the author. It only touches things which are usually not intended. In case of doubt, phptidy will not touch anything. Because of this strategy it is also very unlikely, that phptidy by fault changes the functionality of the code.

phptidy is useful in many situations:

The used coding standard is mainly inspired by the PEAR Coding Standards: http://pear.php.net/manual/en/standards.php

phptidy is released under the GPL and can be used for free.

=== System Requirements ===

=== Installation ===

phptidy consists of only one file, phptidy.php. Execute this file on command line to use it.

$ ./phptidy.php

There is actually no need to install phptidy, you can run it also with the path to the file on command line.

$ ~/src/phptidy/phptidy.php

To be able to call phptidy without having to supply the path, you can copy phptidy.php to a directory in your PATH, e.g. ~/bin (only for you)

$ cp phptidy.php ~/bin

or /usr/local/bin (for all users).

cp phptidy.php /usr/local/bin

In the following examples I assume you have installed phptidy in your PATH.

=== Basic usage ===

The most simple case: You have a PHP script example.php and you want to tidy it up.

$ phptidy.php suffix example.php

phptidy will create a file "example.php.phptidy.php" with the tidy version of your script.

To see what changes phptidy would make to your script, you can use phptidy's "diff" command:

$ phptidy.php diff example.php

If you are happy with the displayed changes, you can now overwrite the original file with the tidy version by using the "replace" command:

$ phptidy.php replace example.php

You will find a backup of the original version of the file in the hidden file ".example.php.phptidybak~".

If you have a project consisting of multiple files, you can supply all these files as arguments:

$ phptidy.php replace .php inc/.php

=== Using config files ===

If you have a project with many files, you can write the list of files in a config file. Then you do not have to supply the list on the command line anymore. The config file has to be named ".phptidy-config.php" and has to be in the project's top level directory. To have the same effect as in the last example the config file would have to have the following content:

<?php $project_files = array(".php", "inc/.php");

Then you can call phptidy without the files list:

$ phptidy.php replace

Please notice that when using config files, you always have to call phptidy from the project's top level directory where also the config file resides. Otherwise phptidy won't be able to find the config file.

With a config file you can also adjust phptidy's default settings to the specific requirements of your project. See the phptidy source comments for a list of available variables and their default settings.

=== Perspective ===

Don't hesitate to write me about your experiences with phptidy. Write me which features you miss, what did not work for you, or just that it works fine. I hope phptidy helps you with your projects as much as it helps me!

Magnus Rosenbaum [email protected]


All versions of phptidy with dependencies

PHP Build Version
Package Version
Requires php Version >=5.0
ext-tokenizer Version *
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 cmrcx/phptidy contains the following files

Loading the files please wait ....