You post needs to be clarify.
I deleted my previous post
No problem if nb answered to it, what's the use of this info?
Composer traffic is now blocked ...
? What does it means?
What's your root problem? (in what context, ...)
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I currently have a Laravel 6 project. Due to security issues, the company blocked alot of network traffic, including the composer websites, so I can't use composer right now.
So what I was thinking to do is:
Let's say I need the package laravel-dompdf.
What I want to do is to locally install an empty Laravel 6 project, then to install the laravel-dompdf package. This way I can see all the changes done in git.
Will copying/mimicking the changes done in my local computer to the other project make it work?
This is my plan:
First, copy the following packages to the vendor folder (The package and dependencies):
Then there are many composer files changed:
However, I think what's important for the package to work is the changes only in /vendor/composer/autoload_psr4 and /vendor/composer/installed.php.
The changes in autoload_psr4 are the namespaces, for example:
'Barryvdh\DomPDF\' => array($vendorDir . '/barryvdh/laravel-dompdf/src'),
and the changes in installed.php:
'barryvdh/laravel-dompdf' => array(
'pretty_version' => 'v2.0.0',
'version' => '2.0.0.0',
'type' => 'library',
'install_path' => __DIR__ . '/../barryvdh/laravel-dompdf',
'aliases' => array(),
'reference' => '<some_long_hash>',
'dev_requirement' => false,
),
And of course for each of the other packages also do these changes as above to the autoload_psr4 and installed.php files.
Or, I'll also need to do the other changes in the other composer files? Although files like autoload_static are only some weird hashes and numbers so I don't think they're currently necessary, such as:
// ...
'732d45d8ee834vfa537fa454022839d7' => __DIR__ . '/..' . '/psy/psysh/src/functions.php',
);
// ...
'Symfony\Component\Debug\' => 24,
'Symfony\Component\CssSelector\' => 30,
'Symfony\Component\Console\' => 26,
'Svg\' => 4,
'Sabberworm\CSS\' => 15,
Of course it should be a temporary solution till things can be sorted.
Please or to participate in this conversation.