{"id":15740621,"url":"https://github.com/michaeltintiuc/percentilerank-example","last_synced_at":"2025-08-24T04:10:27.390Z","repository":{"id":62528162,"uuid":"79735661","full_name":"michaeltintiuc/percentilerank-example","owner":"michaeltintiuc","description":":100: An example application for calculating percentile ranks","archived":false,"fork":false,"pushed_at":"2017-10-18T23:29:21.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-31T05:14:05.453Z","etag":null,"topics":["calculating-percentile-ranks","calculation","parse","percentile","php","rank","statistics"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaeltintiuc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-22T18:16:28.000Z","updated_at":"2017-10-18T23:38:24.000Z","dependencies_parsed_at":"2022-11-02T15:31:19.595Z","dependency_job_id":null,"html_url":"https://github.com/michaeltintiuc/percentilerank-example","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/michaeltintiuc/percentilerank-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltintiuc%2Fpercentilerank-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltintiuc%2Fpercentilerank-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltintiuc%2Fpercentilerank-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltintiuc%2Fpercentilerank-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaeltintiuc","download_url":"https://codeload.github.com/michaeltintiuc/percentilerank-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltintiuc%2Fpercentilerank-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271789686,"owners_count":24821412,"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","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["calculating-percentile-ranks","calculation","parse","percentile","php","rank","statistics"],"created_at":"2024-10-04T02:22:20.077Z","updated_at":"2025-08-24T04:10:27.337Z","avatar_url":"https://github.com/michaeltintiuc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Percentile Rank\nAn example application for calculating percentile ranks\n\n## Installation\n\nCreate a folder for your project and enter it\n\n```bash\nmkdir percentilerank-example \u0026\u0026 cd \"$_\"\n```\n\nPull the project files\n```bash\ncomposer create-project michaeltintiuc/percentilerank-example .\n```\n\n## Usage\n\nWhen running application via Web Server set the Document Root to `public/`\n\nRun application via `CLI`\n\n```bash\nphp public/index.php\n```\n\nCreate the application with a parser (csv or json)\n\n```php\n/**\n * @param string type of parser\n */\n$app = new MichaelT\\App('csv');\n```\n\nLoad file to be read by the parser\n\n```php\n/**\n * @param string path to file\n */\n$app-\u003eparser()-\u003eloadFile(__DIR__.'/../input.csv');\n```\n\nCalculate percentile rank from file data\n\n```php\n/**\n * @param string|int index/key of score of interest\n * @param string|int index/key to hold percentile rank\n */\n$data = $app-\u003ecalculateRank(2, 'rank');\n```\n\nSave result to file via created parser\n\n```php\n/**\n * @param string path to file\n * @param array data to save\n * @param string|int|array key/index of array to skip\n */\n$app-\u003eparser()-\u003eexportFile(__DIR__.'/../output.csv', $data, 0);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaeltintiuc%2Fpercentilerank-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaeltintiuc%2Fpercentilerank-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaeltintiuc%2Fpercentilerank-example/lists"}