Beta
All guides

PHP

One PHP file and a rewrite rule.

Download virtual-employee-php.zip

Add it to your site

  1. Copy virtual-employee.php into your public folder and set VIRTUAL_EMPLOYEE_SECRET to a long random key.
  2. Send the three addresses to it, then change ve_list() and ve_save() to use your database.
# Apache (.htaccess)
RewriteEngine On
RewriteRule ^api/ve/(articles|news|languages)$ virtual-employee.php [L,QSA]

# nginx
location ~ ^/api/ve/(articles|news|languages)$ { rewrite ^ /virtual-employee.php last; }

In your panel

  1. In your panel, open the employee that writes (articles or news) and go to the website settings.
  2. Enter your website address (https, the root of the domain) and the same website key as on your site. Press “Make a key for me” if you have none yet.
  3. Save and press “Write one now” to test. Keep publishing without asking off until you have seen a draft arrive.