This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Goes deep recursive through JSON object, | |
| * if the children is only object and has less than 50 children {node}, | |
| * adds it to the new result otherwise return the child. | |
| * | |
| * @param obj | |
| * @param node 50 | |
| * @returns {{}|*} | |
| */ | |
| function cleanObject(obj, node = 50) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $response = Http::attach( | |
| 'image', | |
| $imageFileContents, | |
| 'photo.jpg' | |
| )->post('http://192.168.0.203:80/v1/vision/detection'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| return [ | |
| 'us-east-1' => [ | |
| 'mediaconvert' => [], | |
| 'rekognition' => [ | |
| 'image' => [ | |
| 'group1' => [ |
OlderNewer