PHP code example of chrono-meter / composer-plugin-for-wp
1. Go to this page and download the library: Download chrono-meter/composer-plugin-for-wp library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
chrono-meter / composer-plugin-for-wp example snippets
( function () {
/**
* Autoload third-party classes.
*/
// Method 1. Use composer's autoloader.
// ss_map = ( @include __DIR__ . '/third-party/vendor/composer/autoload_classmap.php' ) ?: array(); // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged, Universal.Operators.DisallowShortTernary.Found
if ( isset( $class_map[ $klass ] ) ) {