All Questions
16
questions
1
vote
1
answer
188
views
Simple calculation of sector coefficients using PHP
Function
This class extends the key class, called EQ, and does basic calculation based on minutely data. It then calculates weight coefficients (e.g., [0, 1]) for ...
0
votes
1
answer
59
views
Acquiring payment service ID
I have a utility class, called Bills, that extracts some information from a billId and a ...
2
votes
1
answer
325
views
Play market in-app billing
I want to add in-app purchases to my application. In-app in test mode works great, but there is no check on their authenticity. While googling some info about making server-side of in-app, I found out ...
3
votes
2
answers
1k
views
Rounding prices
I have written a PHP function that should round prices to a desired format.
E.G. 1547.86456
That should be : 1547.85
OR
if desired : 1547.86
The code has been written and it works under several ...
2
votes
0
answers
269
views
Decoupling payment classes
I have several classes for payment handling, I separate these classes into directories like below. Actually I'm going to use it for Laravel project but to make it simple, maybe we can talk as if it's ...
2
votes
1
answer
188
views
Vehicle running cost calculator
I'm making a road tax data calculator/parser for practice. I do this because I want to learn more about OOP and arrays with its functionality.
On my previous post, I made this same application but ...
2
votes
1
answer
101
views
Road tax data parser
I'm making a data parser for road tax data (costs) which parses a JSON file with all weird variable names, which the customer gave me.
The costs are different on each vehicle type. The costs at some ...
2
votes
2
answers
113
views
Calculating the price of digital media
I have taken over maintenance of some code, and have restructured it after reading some documents about PSR-2:
...
5
votes
2
answers
2k
views
UK tax calculator
I'm very much on the beginner end of the PHP scale but I have read plenty of the entry level books and completed the online training at teamtreehouse.com so I know the basics.
I'm at a point where I'...
3
votes
1
answer
181
views
Credit card validation with reversed array
I want a review of this code.
...
1
vote
1
answer
2k
views
Online virtual currency exchange
This is a trade script for an online virtual currency exchange I have been developing. We have a team of 3, and we all work in our own trees. Since we're all young and not very experienced, we would ...
3
votes
2
answers
3k
views
Currency conversion class with caching
I've just made this class, which supports caching. I'd really appreciate any comments on how to make it better etc.
Code
...
13
votes
4
answers
3k
views
Heavily-criticized tax calculator
I just created this during a live screencast. The people who were on there were very critical of almost every line of code. They say I am a horrible coder and know nothing. Looking at this tax ...
1
vote
3
answers
282
views
Fail-safe remote API operations for managing customers and billing
I'm working with two remote APIs: one which manages customers and the other (a Paypal API interface) which manages billing. To delete an account, I must delete the records from both.
...
2
votes
2
answers
408
views
Parse in currency rates of major cities
I'm creating a website that parses in currency rates of the three major cities listed below in the $cities array.
...