{"repo":"Log1x/laravel-webfonts","free":true,"listed":false,"github":"https://github.com/Log1x/laravel-webfonts","clone":"git clone https://github.com/Log1x/laravel-webfonts.git","description":"Download, install, and preload Google fonts locally in your Laravel project.","language":"PHP","stars":142,"topics":["acorn","laravel","webfonts"],"license":"MIT","category":"cli-tools","readme_excerpt":"Laravel Webfonts Laravel Webfonts allows you to easily download, install, and preload over 1500 Google fonts locally in your Laravel project. Features - 🔍️ Search and install over 1500 Google fonts from the public google-webfonts-helper API. - ⚡️ Automatically generate @font-face CSS at-rules when installing fonts using CLI. - 🧑‍💻 Supports Vite out of the box with zero configuration. - ⚡️ Provides an easy-to-use @preloadFonts Blade directive to preload fonts found in the Vite manifest. - 🚀 Automatically injects font preload markup into wp head on WordPress sites running Acorn. Requirements - PHP = 8.1 - Composer - Laravel = 10.0 Installation Install via Composer: Usage If you already have fonts locally installed in your project, skip to Preloading Fonts. Adding Fonts Laravel Webfonts provides a very easy way to install new webfonts to your project using command line: By default, installing a font will trigger the following things to happen: - Download the font archive to a temporary directory in local storage. - Extract the font archive. - Move downloaded fonts to resources/fonts . - Clean up the temporary directory. - Generate and prepend @font-face at-rules to a fonts stylesheet. The fonts stylesheet will reside at the root of your stylesheet directory located in resources/ . If the font stylesheet does not already exist, it will be created using the most common stylesheet extension (css, scss, ...) found among your styles. By default, the resources/css and resources/st","default_branch":null,"files":null,"tree":[],"storefront":"/r/Log1x","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Log1x/laravel-webfonts/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}