Composer
class Composer (View source)
Properties
| protected Filesystem | $files | The filesystem instance. |
|
| protected string|null | $workingPath | The working path to regenerate from. |
Methods
Create a new Composer manager instance.
Regenerate the Composer autoloader files.
Regenerate the optimized Composer autoloader files.
Get the composer command for the environment.
Get the PHP binary.
Get a new Symfony process instance.
Set the working path used by the class.
Details
void
__construct(Filesystem $files, string|null $workingPath = null)
Create a new Composer manager instance.
void
dumpAutoloads(string|array $extra = '')
Regenerate the Composer autoloader files.
void
dumpOptimized()
Regenerate the optimized Composer autoloader files.
protected array
findComposer()
Get the composer command for the environment.
protected string
phpBinary()
Get the PHP binary.
protected Process
getProcess(array $command)
Get a new Symfony process instance.
$this
setWorkingPath(string $path)
Set the working path used by the class.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.