mattmy/laravel-dwg-converter
A Laravel package for converting DWG CAD drawings into web-friendly formats, letting you process uploaded blueprints and technical drawings directly within your PHP application workflow via a simple, framework-native integration.
invalid_configuration otherwise.soffice, convert/magick) are on the PATH or configured explicitly; conversion is process-driven, so most setup failures surface as process failures rather than input errors..dwg file and request a PDF or raster artifact. You receive a DwgOutput you can save to a disk, stream in a response, or inspect for metadata.DwgOutput API (bytes, size, cleanup, terminal consumption), then the failure states (invalid_configuration, image_invalid, process failure).DwgOutput immediately. Treat the output as short-lived — save it to a storage disk or stream it in the same request/job.DwgOutput rejects cloning and serialization, never put one on a queue payload, in a session, or in a cache — convert inside the job and persist the result.invalid_configuration means fix config (temp dir, paths); image_invalid means the produced or embedded image is malformed/truncated; process failures mean LibreOffice/ImageMagick failed to run or read — surface those differently to users than "bad DWG".DwgOutput throws LogicException on clone, serialize, or unserialize. Don't pass it across process boundaries — extract bytes or save to disk first.invalid_configuration, not a generic filesystem error.image_invalid before RIFF length is read; handle it alongside other invalid-image cases.DwgOutput with your own cloneable DTO unless you extract the bytes.How can I help you explore Laravel packages today?