A must read story from smashingmagazine.com about WordPress
Making code that is agnostic of the CMS or framework has several benefits. For instance, through its new content editor Gutenberg, WordPress enables to code components which can be used for other CMSs and frameworks too, such as for Drupal and for Laravel. However, Gutenberg’s emphasis on re-utilization of code is focused on the client-side code of the component (JavaScript and CSS); concerning the component’s backend code (such as the provision of APIs that feed data to the component) there is no pre-established consideration. Abstracting WordPress Code To Reuse With Other CMSs: Concepts (Part 1)
thumbnail courtesy of smashingmagazine.com