{"id":16049983,"url":"https://github.com/codad5/php-csv-to-chart","last_synced_at":"2025-04-05T07:21:20.626Z","repository":{"id":104532120,"uuid":"552506442","full_name":"codad5/php-csv-to-chart","owner":"codad5","description":"Convert a csv file to chart using chart.js","archived":false,"fork":false,"pushed_at":"2022-10-18T22:02:15.000Z","size":298,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T15:13:01.933Z","etag":null,"topics":["chartjs","csv","php"],"latest_commit_sha":null,"homepage":"http://php-csv-chart.sanctablog.com/","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/codad5.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-16T18:43:21.000Z","updated_at":"2022-11-24T15:37:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"b110b7fc-81cc-480a-bd9d-838ec5652ac6","html_url":"https://github.com/codad5/php-csv-to-chart","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.5,"last_synced_commit":"65e3ca8e9ee1c519a602b680a83aeea5812f2be0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codad5%2Fphp-csv-to-chart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codad5%2Fphp-csv-to-chart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codad5%2Fphp-csv-to-chart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codad5%2Fphp-csv-to-chart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codad5","download_url":"https://codeload.github.com/codad5/php-csv-to-chart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247301222,"owners_count":20916470,"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":["chartjs","csv","php"],"created_at":"2024-10-09T00:41:37.931Z","updated_at":"2025-04-05T07:21:20.609Z","avatar_url":"https://github.com/codad5.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About the project\r\n\r\nThis is a project that reads a csv file with data of dollar rate and the date but i am required to read the csv file and convert it to a virtual presentation in php\r\n\r\n## Approaches\r\n\r\n- I will use [chart.js](https://www.chartjs.org) for a chart representaton\r\n- I used [php-router library](https://github.com/aosasona/php-router) for easy routing.\r\n- For showing the chart i built a mini api to be consumed by the frontend while other datas are been echoed out directly\r\n\r\n### Running it\r\n\r\n##### Clone the project\r\n\r\n ```bash\r\n  git clone https://github.com/codad5/php-csv-to-chart\r\n ```\r\n\r\n##### Install all dependecies\r\n\r\n```bash\r\ncomposer install\r\n```\r\n\r\n##### Serve Your Project\r\n\r\n```shell\r\nphp -S localhost:2000\r\n```\r\n\r\n![Screenshot](/public/Sample1.png)\r\n\r\n![Screenshot](/public/Sample2.png)\r\n###### Added Filter\r\n\r\n![Screenshot](/public/Sample3.png)\r\n### Routes\r\n\r\n- Index route `/` - This Shows the list of all avaliable rates and dates and also show then in a chart form\r\n- `/rates/:date` - This is to show the rate of a particular date given\r\n- `/api/rates` - This is to get all rate data\r\n- `/api/rates/:date` - This is to get a particular rate based on the given date\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodad5%2Fphp-csv-to-chart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodad5%2Fphp-csv-to-chart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodad5%2Fphp-csv-to-chart/lists"}