{"action":"created","issue":{"url":"https://api.github.com/repos/thephpleague/omnipay/issues/322","repository_url":"https://api.github.com/repos/thephpleague/omnipay","labels_url":"https://api.github.com/repos/thephpleague/omnipay/issues/322/labels{/name}","comments_url":"https://api.github.com/repos/thephpleague/omnipay/issues/322/comments","events_url":"https://api.github.com/repos/thephpleague/omnipay/issues/322/events","html_url":"https://github.com/thephpleague/omnipay/issues/322","id":128159094,"number":322,"title":"[3.0] Money value object","user":{"login":"barryvdh","id":973269,"avatar_url":"https://avatars.githubusercontent.com/u/973269?v=3","gravatar_id":"","url":"https://api.github.com/users/barryvdh","html_url":"https://github.com/barryvdh","followers_url":"https://api.github.com/users/barryvdh/followers","following_url":"https://api.github.com/users/barryvdh/following{/other_user}","gists_url":"https://api.github.com/users/barryvdh/gists{/gist_id}","starred_url":"https://api.github.com/users/barryvdh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barryvdh/subscriptions","organizations_url":"https://api.github.com/users/barryvdh/orgs","repos_url":"https://api.github.com/users/barryvdh/repos","events_url":"https://api.github.com/users/barryvdh/events{/privacy}","received_events_url":"https://api.github.com/users/barryvdh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thephpleague/omnipay/labels/V3.0","name":"V3.0","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2016-01-22T13:42:10Z","updated_at":"2016-02-07T15:58:03Z","closed_at":null,"body":"So the de-facto package seems to be this: https://github.com/mathiasverraes/money\r\n\r\nWork is happening on the nextrelease branch: https://github.com/mathiasverraes/money/tree/nextrelease\r\n\r\nMoney has as static 'from string'  method to intialise from string, but we should encourage setting an integer. This could also be used for currency.\r\n\r\nI've asked for the timeframe for 3.0 is, so we might be able to use that."},"comment":{"url":"https://api.github.com/repos/thephpleague/omnipay/issues/comments/181038620","html_url":"https://github.com/thephpleague/omnipay/issues/322#issuecomment-181038620","issue_url":"https://api.github.com/repos/thephpleague/omnipay/issues/322","id":181038620,"user":{"login":"aimeos","id":8647429,"avatar_url":"https://avatars.githubusercontent.com/u/8647429?v=3","gravatar_id":"","url":"https://api.github.com/users/aimeos","html_url":"https://github.com/aimeos","followers_url":"https://api.github.com/users/aimeos/followers","following_url":"https://api.github.com/users/aimeos/following{/other_user}","gists_url":"https://api.github.com/users/aimeos/gists{/gist_id}","starred_url":"https://api.github.com/users/aimeos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aimeos/subscriptions","organizations_url":"https://api.github.com/users/aimeos/orgs","repos_url":"https://api.github.com/users/aimeos/repos","events_url":"https://api.github.com/users/aimeos/events{/privacy}","received_events_url":"https://api.github.com/users/aimeos/received_events","type":"User","site_admin":false},"created_at":"2016-02-07T15:58:03Z","updated_at":"2016-02-07T15:58:03Z","body":"@frederikbosch We object against using integers as base representation due to what @sagikazarmark said about overflows (more worse than using floats). A formatter class for a few formats doesn't help too. The rest is simply a matter of style and can be implemented as the majority will like it most.\r\n"}}