Skip to content

Instantly share code, notes, and snippets.

@zukilover
Created September 28, 2017 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zukilover/1782f90559d2923f14aae8e4bd0b7b6e to your computer and use it in GitHub Desktop.
Save zukilover/1782f90559d2923f14aae8e4bd0b7b6e to your computer and use it in GitHub Desktop.
PHP Generator
<?php
$obj = array();
for($i = 1; $i <= 20; $i++){
$item = (object) array(
"amount" => "10000",
"id" => $i . "9ba3d1c0-72b3-4ffb-a738-e80d78c0b290",
"detailStatus" => "Complete",
"chargeInstruction" => "REM",
"beneBankName" => "PT. Bank Mandiri Tbk.",
"creditAcctNo" => "1153331290464",
"beneBankCode" => "009",
"debitAcctName" => "DARYANDONO SIT",
"currencyCode" => "IDR",
"productCode" => "PC_PR_IH_THRD_PRTY",
"identicalStatus" => "N",
"debitAcctNo" => "1380011819039",
"instructionMode" => "1",
"lineNo" => 3,
"isCitizen" => "N",
"detailType" => "D",
"extendedDetails" => "ExtPaymentDetail",
"beneEmail" => "rinopratama.aprisma@gmail.com",
"isResident" => "N",
"isSubmit" => "N",
"productName" => "Inhouse Transfer"
);
array_push($obj, $item);
}
print_r(json_encode($obj));
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment