PHP code example of icebear / yac
1. Go to this page and download the library: Download icebear/yac library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
icebear / yac example snippets
json
{
"version": 1,
"source": "src/Service/UserService.php",
"annotations": [
{
"id": "yac_01JB8M3Z4X9K7Q2W5E6R8T0Y1V",
"scope": "UserService::updateUser",
"before": "$id = $user->getId();",
"anchor": "$entity = $repository->find($id);",
"after": "$entity->refresh();",
"context": "