{"id":21312552,"url":"https://github.com/dfridrich/mortage-calculator","last_synced_at":"2025-08-30T07:03:50.736Z","repository":{"id":56967339,"uuid":"63173472","full_name":"dfridrich/mortage-calculator","owner":"dfridrich","description":"Calculate mortage easily in PHP","archived":false,"fork":false,"pushed_at":"2016-08-05T07:33:19.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-25T10:30:18.130Z","etag":null,"topics":[],"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/dfridrich.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}},"created_at":"2016-07-12T16:16:40.000Z","updated_at":"2016-07-12T17:31:51.000Z","dependencies_parsed_at":"2022-08-21T09:50:47.071Z","dependency_job_id":null,"html_url":"https://github.com/dfridrich/mortage-calculator","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dfridrich/mortage-calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfridrich%2Fmortage-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfridrich%2Fmortage-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfridrich%2Fmortage-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfridrich%2Fmortage-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dfridrich","download_url":"https://codeload.github.com/dfridrich/mortage-calculator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfridrich%2Fmortage-calculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272815836,"owners_count":24997662,"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-30T02:00:09.474Z","response_time":77,"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":[],"created_at":"2024-11-21T17:34:21.468Z","updated_at":"2025-08-30T07:03:50.711Z","avatar_url":"https://github.com/dfridrich.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Mortage Calculator\n\n\n[![Build Status](https://img.shields.io/travis/dfridrich/mortage.svg?style=flat-square)](https://travis-ci.org/dfridrich/mortage)\n[![Downloads](https://img.shields.io/packagist/dt/dfridrich/mortage.svg?style=flat-square)](https://packagist.org/packages/dfridrich/mortage)\n[![Latest stable](https://img.shields.io/packagist/v/dfridrich/mortage.svg?style=flat-square)](https://packagist.org/packages/dfridrich/mortage)\n\nI went by train one day and I wanted to make some cool library, so I did this. Now you can **calculate mortage easily in PHP.**\n\n## Install\n\n`composer require dfridrich/mortage`\n\n## Usage\n\n```php\n$mortage = new Defr\\MortageRequest(1000000, 1.89, 20);\n/** @var \\Defr\\MortageResult $result */\n$result = $mortage-\u003ecalculate();\n```\n\nYou can use `MortageResult`\\`s getters for access values:\n\n```php\nobject(Defr\\MortageResult)[2]\n  private 'mortageRequest' =\u003e\n    object(Defr\\MortageRequest)[3]\n      private 'salePrice' =\u003e float 1000000\n      private 'mortgageInterestPercent' =\u003e float 1.89\n      private 'yearTerm' =\u003e int 20\n      private 'monthTerm' =\u003e int 240\n  private 'annualInterestRate' =\u003e float 0.0189\n  private 'monthlyInterestRate' =\u003e float 0.001575\n  private 'monthlyPayment' =\u003e float 5006.9030574862\n  private 'totalPayed' =\u003e float 1201656.7337967\n  private 'apr' =\u003e float 1.91\n```\n\n## Credits\n\nOrinally based on library from [Dave Tutfs](http://www.davetufts.com/).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfridrich%2Fmortage-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdfridrich%2Fmortage-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfridrich%2Fmortage-calculator/lists"}