Search

maintain it

lol, I think Nick means 'get-it-to-work'.

Something like this is an awesome idea!

I tried using this extension on Thursday, I'm not even sure if it worked. It didn't throw any errors, but I'd like to think it worked, doing whatever it was supposed to be doing.

So, you're getting success? Or just didn't throw any errors…

Confirmed that this is indeed working on a 2.2.1 build, I followed the README and was able to fire off commands.

I was able to write a quick demo that gives access to the REST API extension using:

php symphony -t {token} rest_api request -path entries/articles/2 -format json -method get

Which maps on to the REST API architecture URL like:

/symphony/api/entries/articles/2/?format=json&method=get

i.e. returns entry ID 2 in JSON.

Think of the possibilities! Some ideas:

  • RESTful access (proof of concept complete!)
  • enabling/disabling maintenance mode
  • batch-saving entries (like the new batch save extension)
  • clearing cache and logs
  • exporting entries (Import/Export CSV extension)
  • importing entries (running XML importers)
  • exporting databases (Export Ensemble, Database Synchroniser etc)
  • deploying sites, writing an extension that handles git deployments, setting permissions, updating databases etc.

@nick
batch save , do you mean this?

I do. It could be shell-enabled:

php symphony -t {token} resave_entries section articles

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details