Build PHP Laravel Class and complete missing functionality
$10-30 USD
Cancelado
Publicado há aproximadamente 8 anos
$10-30 USD
Pago na entrega
Build a Laravel class that is available throughout the cycle of an HTTP web request
This must be setup as a small application able to receive an HTTP Post Request, in order to test.
It will receive several parameters:
This Laravel class will receive an $params array as follows:
$params = array(
"scrubber" => "AcuityTec",
"token" => "some guid value (ex: bccc1fe7-e745-4343-b53b-6145993f177e)"
"load" => "base|decision|errors|fields_full_new_request|...",
"params" => array(
"function" => "convert",
"params" => array(
"source" => "sys",
"destination" => "variable"
)
)
)
According to the "load" parameter it will use (if already created) or create (if not instantiated yet), a class in "\app\Scrubber"
According to the "scrubber" parameter and the "load" parameter, the new class will load and parse an xml in \app\Scrubber\plugins\[Scrubber], for example, if [Scrubber] = "AcuityTec" and "load" is "base":
- will instantiate \app\Scrubber\ScrubberConfBase if not exist or use if already exist
- will load and \app\Scrubber\plugins\AcuityTec\[login to view URL]
Important:
- Do not use Session variables
- the classes must be instantiated once
- the created object must exist throughout the request, must be accessible whole application
- use Orchestra xml parser
functions of each class:
ScrubberConfBase:
- getSettingValue("[setting]"):
returns the value for that setting.
- getScrubbTypes()
return simple array of supported (value="true" && type="boolean") scrubbTypes
- getCredentials()
return associative array of credentials (setting => value)
ScrubberConfDecision:
- getConvert($params) ($contains for example: array("token" => "bccc1fe7-e745-4343-b53b-6145993f177e", "score" => 2.5) ):
returns "convert" attribute for given token (if token not found returns from default)
>> if type = range it must validate $score according to "value" range
ScrubberConfErrors:
- getDescription($error)
returns "description" for a given error code
- getConvert($error)
return "convert" for the given $error value
ScrubberConfReasons:
- getDescription($reason)
returns the "description" for a given reason code
- getConvert($reason)
return "convert" for the given $reason value
ScrubberConfScore:
- getConvert($score) (example: "score" => 2.5):
returns the "convert" attribute for the given score
>> if type = range it must validate the provided $score falls in valid "value" range
ScrubberConfStatus:
- getConvert($status)
returns "convert" value for the provided $status
ScrubberConfSuggest:
- getConvert($suggest)
returns the "convert" value for the provided $suggest
ScrubberField:
when loaded, it must parse the HTTP Request post parameters,
- validated (according to "validator") items go into assoc-array/object-array
- missing or failed-validation required="true" items
- missing or failed-validation required="false" items
for example loads: [login to view URL] (represents data fields received in POST request by remote client application)
- getItemId($params)
"params" => array(
"source" => "variable",
"destination" => "sys",
"item" => "session_id"
)
returns the "sys" for given "variable"
- getItemId($params)
"params" => array(
"source" => "sys",
"destination" => "variable",
"item" => "sysSessionId"
)
returns the "variable" for given "sys" value
- getValue($params)
"params" => array(
"source" => "sys|variable",
"item" => "sysSessionId|session_id"
)
returns the value of the Post Parameter (post parameter names are the ones defined in the "sys" attributes)
- getRequestParams()
returns associative array ("key" => "value") with "variable" as key and post value (based on the "sys" attribute )
- getErrors()
returns array of errors
- getWarnings()
returns array of warnings
- getErrorCount()
returns # of errors
Hi
I work towards providing reliable, relevant and robust IT solutions at most competitive prices to my customers. I ensure 100% customer satisfaction
so lets start
Thanks
Hi,
We are 7+ years experienced developers and created various web apps and mobile apps. You can just check our portfolio for the products/apps that we built.
We have worked with various startups and growing companies to make some really great products. We understand business requirements very well to make the best solution which is required. so when you need more than just a programmer who can put his own inputs on the table to make a product better, we can be the best choice.
We are also pretty much contributor in laravel. You will also find one open source project of laravel on my portfolio named "Laravel Generator".
We are familiar with multiple other technologies like Laravel, AngularJS, Bootstrap, iOS, Android, NodeJS. MongoDB, MySQL, Elastic Search, Redis etc. We know how to make the best mixture of technologies and build the best solution.
I think this is the best opportunity for both of us to work together as a long term.
Hope to hear you soon.