PHP code example of lolautruche / ezsh
1. Go to this page and download the library: Download lolautruche/ezsh 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/ */
lolautruche / ezsh example snippets bash
Debugging eZ Platform using 'default' SiteAccess, in 'dev' environment.
Psy Shell v0.1.12 (PHP 5.5.15 — cli) by Justin Hileman
>>> $repository
=> <eZPublishCoreSignalSlotRepository_000000001c2171540000000109a6622a #000000005890a1640000000113a69e24> {}
>>> $contentInfo = $contentService->loadContentInfo(2926);
=> <eZ\Publish\API\Repository\Values\Content\ContentInfo #2926, Wheelchair Barleywine {
id: 2926,
contentTypeId: 40,
name: "Wheelchair Barleywine",
sectionId: 1,
currentVersionNo: 1,
published: true,
ownerId: 14,
modificationDate: <DateTime #00000000588e6c020000000142ceef3a> {
date: "2014-08-28 10:32:44.000000",
timezone_type: 3,
timezone: "Europe/Paris"
},
publishedDate: <DateTime #00000000588e6c0c0000000142ceef3a> {
date: "2014-08-28 10:32:44.000000",
timezone_type: 3,
timezone: "Europe/Paris"
},
alwaysAvailable: 0,
remoteId: "beer-d7nEsv",
mainLanguageCode: "eng-GB",
mainLocationId: "2928"
}
>>> $configResolver->getParameter('languages');
=> [
"eng-GB"
]