Download the PHP package fruivita/line-reader without Composer

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

File Reader for Laravel applications

Latest Version on Packagist Test Coverage Maintainability GitHub repo size Packagist Total Downloads

This package, for Laravel applications, allows you to read the contents of huge files without killing your server, that is, without having to load all the contents at once in memory causing an out-of-memory errors.

The strategy used here is to read the contents of the file, line by line, optimizing the use of server resources and, most importantly, in an efficient way.

It is also possible to paginate the contents of the file, again, without having to load it entirely into memory, except the page itself.

 


Table of Contents

  1. Notes

  2. Prerequisites

  3. Installation

  4. How it works

  5. Testing and Continuous Integration

  6. Changelog

  7. Contributing

  8. Code of conduct

  9. Security Vulnerabilities

  10. Support and Updates

  11. Roadmap

  12. Credits

  13. Thanks

  14. License

Notes

⭐ Internally, this package reads the file contents using php's SplFileObject and Generators classes. In the specific case of pagination, the LimitIterator class is used to delimit the beginning and end of the content to be read.

❤️ Heavily inspired by the bcremer/LineReader package.

⬆️ Back

 

Prerequisites

  1. PHP dependencies

    PHP ^8.0

    Extensions

  2. GitHub Package Dependencies

⬆️ Back

 

Installation

  1. Install via composer:

  2. Optionally publish the translations

    The strings available for translation are as follows. Change them as needed.

    This package already has translations for en and pt-br.

⬆️ Back

 

How it works

  1. Reading a file line by line.

     

    LineReader exposes the following method to read the file line by line:

    ✏️ readLines

     

    🚨 Exceptions:

    • readLines throws \FruiVita\LineReader\Exceptions\FileNotReadableException if don't have read permission on the file or it can't be found

     

  2. Reading the file by page.

     

    LineReader exposes the following method to read the file by page:

    ✏️ readPaginatedLines

     

    🚨 Exceptions:

    • readPaginatedLines throws \FruiVita\LineReader\Exceptions\FileNotReadableException if don't have read permission on the file or it can't be found
    • readPaginatedLines throws \InvalidArgumentException if per_page or page is less than 1

⬆️ Back

 

Testing and Continuous Integration

⬆️ Back

 

Changelog

Please see CHANGELOG for more information on what has changed in each version.

⬆️ Back

 

Contributing

Please see CONTRIBUTING for more details on how to contribute.

⬆️ Back

 

Code of conduct

To ensure that everyone is welcome to contribute to this open-source project, please read and follow the Code of Conduct.

⬆️ Back

 

Security Vulnerabilities

Please see security policy how to report security vulnerabilities or flaws.

⬆️ Back

 

Support and Updates

The latest version will receive support and updates whenever the need arises. The others will receive updates for 06 months after being replaced by a new version and then discontinued.

Version PHP Release End of Life
1.0 ^8.0 09-05-2022 dd-mm-yyyy

🐛 Found a bug?!?! Open an issue.

⬆️ Back

 

Roadmap

✨ Any new ideas?!?! Start a discussion.

The following list contains identified and approved improvement needs that will be implemented in the first window of opportunity.

⬆️ Back

 

Credits

⬆️ Back

 

Thanks

👋 Thanks to the people and organizations below for donating their time to build the open-source projects that were used in this package.

💸 Some of these people or organizations have some products/services that can be purchased. If you can help them by buying one of them or becoming a sponsor, even for a short period, you will help the entire open-source community to continue developing solutions for everyone.

⬆️ Back

 

License

The MIT License (MIT). Please see the License File for more information.

⬆️ Back


All versions of line-reader with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/collections Version ^9.11
illuminate/pagination Version ^9.11
illuminate/support Version ^9.11
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 fruivita/line-reader contains the following files

Loading the files please wait ....