Recommend this page to a friend! |
![]() |
Info | Documentation | ![]() |
![]() |
![]() |
Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-06-14 (9 months ago) ![]() | Not enough user ratings | Total: 19 | All time: 11,370 This week: 57![]() |
Version | License | PHP version | Categories | |||
apl-test 1.0.0 | MIT/X Consortium ... | 7 | Files and Folders, Libraries, Design ..., P... |
Description | Author | ||||||||||||||
This package can process large CSV files using Laravel queues. Innovation Award |
|
Create a small sample application using common APL tools & languages. The application will need to import a large CSV file (100k records) into a queue, where a background worker will process each individual record.
composer install
php vendor/bin/homestead make
or by copying the attached _Homestead.yaml_ file to your project directory and run
vagrant up
vagrant ssh
copy .env.example .env
php artisan migrate
php artisan queue:table
This application can generate users in csv
, json
format.
To generate a list of users, use the following command:
php artisan generate:users {format} {count=10} {filename=users}
This command will generate a users.csv file containing 100000 users to the default storage directory.
Currently there are two formats supported: json and csv. For more info, see the app/Extension/HandleItemsList
and app/Extension/HandleItemsList
folders for more info about further format implementations.
__Example:__
This will generate a users.csv file with 100000 user data
php artisan generate:users csv 100000
This command will generate a users.json file with 100000 users data.
php artisan generate:users json 100000
Start the workers:
php artisan queue:work --queue=users
To load a file into the users table, run the below command
php artisan load:users {format=csv} {filename=users}
__Example:__
This will load the users.csv file into the users table
php artisan load:users csv users
This will load the users.json file into the users table
php artisan generate:users json 100000
In order to properly run tests, the .env.testing file has to be completed. After the above is completed, run:
php artisan test
Andras Zoltan Gyarfas - Zoli
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Doc. | Documentation |
![]() |
/ | apl-csv-handler |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() |
Class | Class source | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Doc. | Documentation | ||
![]() ![]() |
Aux. | Auxiliary script | ||
![]() ![]() |
Data | Auxiliary data |
![]() |
/ | apl-csv-handler | / | app |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
![]() |
/ | apl-csv-handler | / | app | / | Console |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
Class | Class source |
![]() |
/ | apl-csv-handler | / | app | / | Console | / | Commands |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
/ | apl-csv-handler | / | app | / | Exceptions |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
/ | apl-csv-handler | / | app | / | Extensions |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
![]() |
/ | apl-csv-handler | / | app | / | Extensions | / | GenerateUserList |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
/ | apl-csv-handler | / | app | / | Extensions | / | HandleItemsList |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
/ | apl-csv-handler | / | app | / | Helpers |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
/ | apl-csv-handler | / | app | / | Http |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
Class | Class source |
![]() |
/ | apl-csv-handler | / | app | / | Http | / | Controllers |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
/ | apl-csv-handler | / | app | / | Http | / | Middleware |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
/ | apl-csv-handler | / | app | / | Jobs |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
/ | apl-csv-handler | / | app | / | Providers |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
/ | apl-csv-handler | / | config |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() ![]() |
Aux. | Auxiliary script |
![]() ![]() |
Aux. | Auxiliary script |
![]() ![]() |
Aux. | Auxiliary script |
![]() ![]() |
Aux. | Auxiliary script |
![]() ![]() |
Aux. | Auxiliary script |
![]() ![]() |
Aux. | Auxiliary script |
![]() |
Class | Class source |
![]() ![]() |
Aux. | Auxiliary script |
![]() ![]() |
Aux. | Auxiliary script |
![]() ![]() |
Aux. | Auxiliary script |
![]() ![]() |
Aux. | Auxiliary script |
![]() ![]() |
Aux. | Auxiliary script |
![]() |
/ | apl-csv-handler | / | database |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
![]() |
/ | apl-csv-handler | / | database | / | factories |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
/ | apl-csv-handler | / | database | / | migrations |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
/ | apl-csv-handler | / | database | / | seeders |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
/ | apl-csv-handler | / | public |
File | Role | Description |
---|---|---|
![]() ![]() |
Data | Auxiliary data |
![]() |
Class | Class source |
![]() ![]() |
Doc. | Documentation |
![]() ![]() |
Data | Auxiliary data |
![]() |
/ | apl-csv-handler | / | resources |
![]() |
/ | apl-csv-handler | / | resources | / | js |
File | Role | Description |
---|---|---|
![]() ![]() |
Data | Auxiliary data |
![]() ![]() |
Data | Auxiliary data |
![]() |
/ | apl-csv-handler | / | resources | / | lang | / | en |
File | Role | Description |
---|---|---|
![]() ![]() |
Aux. | Auxiliary script |
![]() ![]() |
Aux. | Auxiliary script |
![]() ![]() |
Aux. | Auxiliary script |
![]() ![]() |
Aux. | Auxiliary script |
![]() |
/ | apl-csv-handler | / | resources | / | views |
File | Role | Description |
---|---|---|
![]() ![]() |
Aux. | Auxiliary script |
![]() |
/ | apl-csv-handler | / | routes |
File | Role | Description |
---|---|---|
![]() ![]() |
Example | Example script |
![]() ![]() |
Example | Example script |
![]() ![]() |
Example | Example script |
![]() ![]() |
Aux. | Auxiliary script |
![]() |
/ | apl-csv-handler | / | tests |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
Class | Class source | ||
![]() |
Class | Class source |
![]() |
/ | apl-csv-handler | / | tests | / | Feature |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
/ | apl-csv-handler | / | tests | / | Unit |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
![]() |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.