2017 © Pedro Peláez
 

typo3-cms-extension coreapi

Provides a simple to use API for common core features. Goal is to be able to do the most common tasks by CLI instead of doing it in the backend/browser.

image

etobi/coreapi

Provides a simple to use API for common core features. Goal is to be able to do the most common tasks by CLI instead of doing it in the backend/browser.

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 46 Forks
  • 27 Open issues
  • 9 Versions
  • 5 % Grown

The README.md

Stories in Ready Build Status Scrutinizer Code Quality Code Coverage, (*1)

TYPO3 Extension 'coreapi'

The EXT:coreapi should provide a simple to use API for common core features. Goal is to be able to do the most common tasks by CLI instead of doing it in the backend/browser., (*2)

Beside of CLI commands, EXT:coreapi provides service classes, which can be used in your own implementation/extension., (*3)

Checkout the project website at forge.typo3.org: http://forge.typo3.org/projects/show/extension-coreapi, (*4)

Tasks

  • DatabaseApi
    • databaseCompare
  • CacheApi
    • clearAllCaches
    • clearPageCache
    • clearConfigurationCache
  • ExtensionApi
    • info
    • listInstalled
    • updateList from TER
    • fetch an extension from TER
    • import an extension
    • install / uninstall extension
    • ~~create upload folders~~
    • configure extension
  • SiteApi
    • info
    • createSysNews

planned/comming soon

  • Backend
    • manage users (list, create, update, delete)
    • lock/unlock the TYPO3 backend
  • PageTree
    • print/get
  • DataApi
    • generic list/create/update/delete records (and not doing the plain SQL, but using the DataHandler (aka tcemain)!)
    • getRecordsByPid
    • create a database dump (exclude "temporary" tables like caches, sys_log, ...)
  • ReportsApi
    • run/check the reports from the reports module
  • ConfigurationApi
    • list, get and set TYPO3 configurations

CLI call:

Make sure you have a backend user called _cli_lowlevel, (*5)

If you want to use the cache clearing commands, you need to add the following snippet to the TSconfig field of this backend user:, (*6)

options.clearCache.all=1
options.clearCache.pages=1

TYPO3 6.2 and below

Support for TYPO3 CMS below 6.2 was removed with version 0.2.0 of this extension. In case you need to use ext:coreapi in combination with lower version of TYPO3 CMS use version 0.1.0-beta., (*7)

TYPO3 6.2+

If you are using TYPO3 6.2+, you can use the awesome CommandController of Extbase., (*8)

This will show you all available calls ./typo3/cli_dispatch.phpsh extbase help, (*9)

Usage in Composer

{
    "name": "typo3cms/test-website",
    "description": "TYPO3 CMS: test.com",
    "keywords": ["typo3", "cms"],
    "require": {
        "php": ">=5.3.3",
        "typo3core/cms": "*",
        "etobi/coreapi": "dev-master",
    },
    "extra": {
        "installer-paths": {
            "typo3conf/ext/{$name}": [
                "type:typo3-cms-extension"
            ]
        }
    },
    "minimum-stability": "dev",
    "require-dev": {},
    "scripts": {}
}

Running the unit tests

The Unit Tests rely on vfsStream. For some reasons ext:coreapi don't add this dependencies by itself but uses the one which is alread defined for Core Unit Tests. To install vfsStream copy the composer.json from the TYPO3 CMS package into you webroot folder and execute the command composer install. This will install all dependencies into Packages/Libraries/., (*10)

Then run the Unit Tests., (*11)

cp typo3_src/composer.json .
composer install
./bin/phpunit --colors -c typo3/sysext/core/Build/UnitTests.xml typo3conf/ext/coreapi/Tests/Unit/

The Versions

15/03 2016

dev-master

9999999-dev

Provides a simple to use API for common core features. Goal is to be able to do the most common tasks by CLI instead of doing it in the backend/browser.

  Sources   Download

extension cli typo3 commandline deployment

08/02 2016

dev-develop

dev-develop

Provides a simple to use API for common core features. Goal is to be able to do the most common tasks by CLI instead of doing it in the backend/browser.

  Sources   Download

extension cli typo3 commandline deployment

26/01 2016

1.3.0

1.3.0.0

Provides a simple to use API for common core features. Goal is to be able to do the most common tasks by CLI instead of doing it in the backend/browser.

  Sources   Download

extension cli typo3 commandline deployment

15/11 2015

1.2.1

1.2.1.0

Provides a simple to use API for common core features. Goal is to be able to do the most common tasks by CLI instead of doing it in the backend/browser.

  Sources   Download

extension cli typo3 commandline deployment

28/10 2014

1.1.1

1.1.1.0

Provides a simple to use API for common core features. Goal is to be able to do the most common tasks by CLI instead of doing it in the backend/browser.

  Sources   Download

extension cli typo3 commandline deployment

28/10 2014

1.1.0

1.1.0.0

Provides a simple to use API for common core features. Goal is to be able to do the most common tasks by CLI instead of doing it in the backend/browser.

  Sources   Download

The Requires

 

extension cli typo3 commandline deployment

13/07 2014

1.0.0-beta

1.0.0.0-beta

Provides a simple to use API for common core features. Goal is to be able to do the most common tasks by CLI instead of doing it in the backend/browser.

  Sources   Download

The Requires

 

extension cli typo3 commandline deployment

13/07 2014

dev-feature/MakeExtensionApiCompatibleTo62

dev-feature/MakeExtensionApiCompatibleTo62

Provides a simple to use API for common core features. Goal is to be able to do the most common tasks by CLI instead of doing it in the backend/browser.

  Sources   Download

The Requires

 

extension cli typo3 commandline deployment

30/05 2014

0.1.0-beta

0.1.0.0-beta

Provides a simple to use API for common core features. Goal is to be able to do the most common tasks by CLI instead of doing it in the backend/browser.

  Sources   Download

The Requires

 

extension cli typo3 commandline deployment