Download the PHP
package tomasvotruba/lines without Composer
On this page you can find all versions of the php package
tomasvotruba/lines. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor tomasvotruba Package lines Short Description Measuring the size of PHP project License
MIT
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.
CLI tool for quick size measure of PHP project, runs anywhere
What are killer features?
install anywhere - PHP 7.2? PHPUnit 6? Symfony 3? Not a problem, this package has zero dependencies and works on PHP 7.2+
get quick overview of your project size - no details, no complexity, just lines of code
get easy JSON output for further processing
we keep it simple, so you can enjoy reading - for more complex operation use static analysis like PHPStan
Install
The package is scoped and downgraded to PHP 7.2. So you can install it anywhere with any set of dependencies:
Usage
For short output:
For json output, just add --json:
Also, you can combine them (very handy for blog posts and tweets):
Are you looking for top 10 longest files?
↓
The Measured Items
For the text output, you'll get data like these:
Or in a json format:
Vendor file scanning
This tool use case is to measure your code, not the 3rd party libraries. That's why it ignores /vendor directory by default to avoid huge false positives.
If you want to measure vendor files too, use --allow-vendor option:
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 tomasvotruba/lines contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.