PHP code example of jeffersongoncalves / laravel-npm-readme
1. Go to this page and download the library: Download jeffersongoncalves/laravel-npm-readme 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/ */
jeffersongoncalves / laravel-npm-readme example snippets
use JeffersonGoncalves\NpmReadme\NpmReadme;
$html = NpmReadme::fetchHtml('https://www.npmjs.com/package/laravel-echo');
// or a scoped package:
$html = NpmReadme::fetchHtml('https://www.npmjs.com/package/@tailwindcss/vite');
// config/npm-readme.php
'renderer' => [\App\Support\Markdown::class, 'render'],
bash
php artisan vendor:publish --tag="npm-readme-config"