Skip to content

Instantly share code, notes, and snippets.

View pavel-one's full-sized avatar

Pavel Zarubin pavel-one

View GitHub Profile
@pavel-one
pavel-one / api.php
Created April 28, 2018 12:55 — forked from but1head/api.php
мини рест для modx на slim
<?php
use \Psr\Http\Message\ServerRequestInterface as Request;
use \Psr\Http\Message\ResponseInterface as Response;
require '........../autoload.php'; // путь к композеру
define('MODX_API_MODE', true);
require $_SERVER["DOCUMENT_ROOT"].'/index.php';
<?php
$installPackages = array(
'sdStore'
, 'translit'
, 'SanitizeUpload'
, 'TinyMCE'
, 'FormIt'
, 'Analytics'
, 'Big Brother'