PHP code example of omnischolar / arxiv

1. Go to this page and download the library: Download omnischolar/arxiv 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/ */

    

omnischolar / arxiv example snippets


$arxiv = (new ArxivSourceFactory($http))->create(['mailto' => '[email protected]']);
$arxiv->works('Juan Maldacena');
$arxiv->work('hep-th/9711200');
$arxiv->search(new Query(text: 'wormholes', domains: ['hep-th', 'gr-qc'], from: 2024, to: 2024));