{"id":21109020,"url":"https://github.com/ahmedraafat14/payroll-dates-generator","last_synced_at":"2026-04-24T12:02:24.234Z","repository":{"id":210076897,"uuid":"238708679","full_name":"AhmedRaafat14/payroll-dates-generator","owner":"AhmedRaafat14","description":"Small command-line utility to generate csv file for a year salaries/bonus payment dates","archived":false,"fork":false,"pushed_at":"2020-02-06T14:55:09.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T04:08:44.944Z","etag":null,"topics":["composer","csv","csv-writer","oop","oop-examples","oop-in-php","php7","php74"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AhmedRaafat14.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-02-06T14:35:18.000Z","updated_at":"2023-01-20T09:14:04.000Z","dependencies_parsed_at":"2023-11-30T17:57:33.106Z","dependency_job_id":"a2e3a053-b378-45c5-8b1a-60b6797e190a","html_url":"https://github.com/AhmedRaafat14/payroll-dates-generator","commit_stats":null,"previous_names":["ahmedraafat14/payroll-dates-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AhmedRaafat14%2Fpayroll-dates-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AhmedRaafat14%2Fpayroll-dates-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AhmedRaafat14%2Fpayroll-dates-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AhmedRaafat14%2Fpayroll-dates-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AhmedRaafat14","download_url":"https://codeload.github.com/AhmedRaafat14/payroll-dates-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243553202,"owners_count":20309691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","csv","csv-writer","oop","oop-examples","oop-in-php","php7","php74"],"created_at":"2024-11-20T00:50:23.606Z","updated_at":"2025-12-29T13:04:37.704Z","avatar_url":"https://github.com/AhmedRaafat14.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Payroll Dates Generator\n\n##### This is console utility that generate CSV file (for now) has the payroll for a whole year salary and bonus payment dates.\n\n## The problem:\n* Sales staff get a regular monthly fixed base salary and a monthly bonus.\n* The base salaries are paid on the last day of the month unless that day is a Saturday or\na Sunday (weekend).\n* On the 15th of every month bonuses are paid for the previous month, unless that day is\na weekend. In that case, they are paid the first Wednesday after the 15th.\n* The output of the utility should be a CSV file, containing the payment dates for the\nremainder of this year. The CSV file should contain a column for the month, a column that contains the salary payment date for that month, and a column that contains the bonus payment date.\n\n## Requirements:\n* PHP \u003e= 7.4\n* composer\n\n\n## Usage:\n\n\u003e Please, make sure first that is the `bin` file has the correct permissions, you can run the following command to be sure:\n```cmd\n$ chmod +x bin\n```\n\n* First run composer:\n```cmd\n$ composer update\n```\n\n* To generate CSV file for the current year payroll, open your terminal and type:\n```cmd\n$ ./bin --salary-sheet --generate\n```\n\u003e This will generate csv file under `result/` folder with name `2020_salaryAndBonusPaymentDays.csv`.\n\n* If you want to generate it for specific year, just update the command to:\n```cmd\n$ ./bin --salary-sheet --generate --year=2019\n```\n\n* If you want to use specific CSV file name then update the command to:\n```cmd\n$ ./bin --salary-sheet --generate --sheet-name=payroll_for_year_2020\n```\n\n* If you want the generated file to be located in specific directory then update the command to:\n```cmd\n$ ./bin --salary-sheet --generate --sheet-path=payroll\n```\n**NOTE:** if the provided directory not exist it will create it.\n\n**You can as well combine more than one option for the command**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedraafat14%2Fpayroll-dates-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmedraafat14%2Fpayroll-dates-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedraafat14%2Fpayroll-dates-generator/lists"}