Convert Figma logo to code with AI

laravel logovalet

A more enjoyable local development experience for Mac.

2,499
690
2,499
0

Top Related Projects

The power of webpack, distilled for the rest of us.

1,593

Docker-based development-only dependency manager. macOS, Linux, and WSL2-only and installs via PHP's Composer... for now.

2,880

A Laravel-based publishing platform

A package to backup your Laravel app

Debugbar for Laravel (Integrates PHP Debug Bar)

Quick Overview

Laravel Valet is a development environment for macOS minimalists. It provides a blazing fast PHP development environment without the need for a virtual machine, using native macOS features. Valet configures your Mac to always run Nginx in the background, allowing you to serve sites quickly and easily.

Pros

  • Lightweight and fast, with minimal system resource usage
  • Easy setup and configuration for multiple PHP projects
  • Automatic SSL certificate generation for local development
  • Supports various PHP frameworks and applications out of the box

Cons

  • Limited to macOS only, not available for Windows or Linux
  • Less customizable than more complex development environments like Docker
  • May require additional configuration for complex projects or non-standard setups

Getting Started

  1. Install Homebrew if not already installed:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Install PHP and Composer:
brew install php composer
  1. Install Laravel Valet:
composer global require laravel/valet
valet install
  1. Park a directory to serve all its subdirectories as Valet sites:
cd ~/Sites
valet park

Now, any directory within ~/Sites will be accessible at http://foldername.test.

Competitor Comparisons

The power of webpack, distilled for the rest of us.

Pros of Laravel Mix

  • Focuses on asset compilation and bundling, providing a streamlined workflow for front-end development
  • Offers out-of-the-box support for popular preprocessors like Sass, Less, and PostCSS
  • Integrates seamlessly with webpack, allowing for advanced configuration and optimization

Cons of Laravel Mix

  • Limited to asset management and doesn't provide local development environment setup
  • Requires additional setup for PHP-specific tasks and server configuration
  • May have a steeper learning curve for developers unfamiliar with webpack

Code Comparison

Laravel Mix:

mix.js('resources/js/app.js', 'public/js')
   .sass('resources/sass/app.scss', 'public/css')
   .version();

Valet:

valet park
valet link myproject
valet secure myproject

Summary

Laravel Mix is a powerful tool for asset compilation and bundling, offering seamless integration with webpack and support for various preprocessors. It excels in front-end development workflows but is limited to asset management.

Valet, on the other hand, focuses on providing a local development environment for Laravel projects, offering easy setup and configuration for PHP-based applications. It simplifies the process of running multiple projects locally but doesn't handle asset compilation.

Choosing between the two depends on your specific needs: Laravel Mix for asset management and bundling, or Valet for local development environment setup.

1,593

Docker-based development-only dependency manager. macOS, Linux, and WSL2-only and installs via PHP's Composer... for now.

Pros of Takeout

  • Offers a wider range of services beyond PHP and web servers
  • Provides isolated Docker containers for each service
  • Allows easy version switching for different services

Cons of Takeout

  • Requires Docker to be installed and running
  • May have a steeper learning curve for Docker beginners
  • Potentially higher resource usage due to multiple containers

Code Comparison

Takeout (installing Redis):

takeout install redis

Valet (serving a site):

valet link
valet secure

Summary

Takeout and Valet are both development environment tools, but they serve different purposes. Valet focuses on providing a lightweight, native PHP development environment for macOS, while Takeout offers a more flexible, Docker-based approach for various services.

Takeout excels in providing isolated environments for multiple services, making it easier to manage different versions and configurations. However, it requires Docker knowledge and may consume more resources.

Valet, on the other hand, is simpler to set up and use, especially for PHP developers on macOS. It's more lightweight but limited in the range of services it supports compared to Takeout.

Choose Takeout for a more versatile, containerized approach, or Valet for a streamlined PHP development experience on macOS.

2,880

A Laravel-based publishing platform

Pros of Wink

  • Focused on content management for Laravel applications
  • Provides a clean, minimal publishing interface for writers
  • Easy to integrate into existing Laravel projects

Cons of Wink

  • Limited to content management functionality
  • Requires more setup and configuration compared to Valet
  • Less versatile for general Laravel development workflows

Code Comparison

Wink (installation):

composer require themsaid/wink
php artisan wink:install
php artisan storage:link

Valet (installation):

composer global require laravel/valet
valet install

Summary

Wink is a specialized package for adding a publishing platform to Laravel applications, while Valet is a development environment for macOS. Wink focuses on content management, offering a clean interface for writers, but is limited in scope. Valet, on the other hand, provides a broader development environment for Laravel projects, making it easier to set up and manage multiple sites locally.

Wink requires more initial setup within a Laravel project but offers a tailored solution for content management. Valet simplifies the overall Laravel development process on macOS but doesn't provide specific content management features.

Choose Wink if you need a publishing platform within your Laravel application, and opt for Valet if you're looking for a streamlined local development environment for multiple Laravel projects on macOS.

A package to backup your Laravel app

Pros of Laravel Backup

  • Focused on database and file backups, providing a comprehensive backup solution for Laravel applications
  • Offers flexible backup strategies, including multiple storage destinations and cleanup options
  • Includes monitoring and notification features for backup status and potential issues

Cons of Laravel Backup

  • Limited to backup functionality, not providing local development environment setup
  • Requires more configuration and setup compared to Valet's simple installation process
  • May have a steeper learning curve for users new to backup management

Code Comparison

Laravel Backup configuration:

return [
    'backup' => [
        'name' => 'my-app-backup',
        'source' => [
            'files' => [
                base_path(),
            ],
            'databases' => [
                'mysql',
            ],
        ],
        'destination' => [
            'disks' => [
                'local',
                's3',
            ],
        ],
    ],
];

Valet configuration (no direct equivalent, as it's a development environment tool):

valet park
valet link app-name
valet secure app-name

While Laravel Backup focuses on creating and managing backups for Laravel applications, Valet is designed to provide a streamlined local development environment for Laravel projects. The code snippets highlight the different purposes and configuration approaches of these two tools.

Debugbar for Laravel (Integrates PHP Debug Bar)

Pros of Laravel Debugbar

  • Provides detailed debugging information directly in the browser
  • Offers performance profiling and query analysis for Laravel applications
  • Easy to integrate and use within existing Laravel projects

Cons of Laravel Debugbar

  • Can impact application performance when enabled in production
  • Limited to Laravel framework, unlike Valet's broader PHP support
  • Requires manual configuration and setup, compared to Valet's automated environment

Code Comparison

Laravel Debugbar:

use Barryvdh\Debugbar\Facade as Debugbar;

Debugbar::info('Info message');
Debugbar::error('Error message');
Debugbar::warning('Warning message');

Valet (configuration example):

valet install
valet park
valet link myapp
valet secure myapp

Key Differences

Laravel Debugbar is a debugging and profiling tool specifically for Laravel applications, while Valet is a development environment for PHP projects. Debugbar focuses on providing detailed runtime information, query analysis, and performance metrics within the application itself. Valet, on the other hand, simplifies the local development setup by providing an easy-to-use, zero-configuration development environment for PHP projects.

Debugbar is more suited for in-depth application debugging and optimization, while Valet streamlines the process of setting up and managing local development environments for PHP projects, including Laravel applications.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

Build Status Total Downloads Latest Stable Version License

Introduction

Valet is a Laravel development environment for Mac minimalists. No Vagrant, no /etc/hosts file. You can even share your sites publicly using local tunnels. Yeah, we like it too.

Laravel Valet configures your Mac to always run Nginx in the background when your machine starts. Then, using DnsMasq, Valet proxies all requests on the *.test domain to point to sites installed on your local machine.

In other words, a blazing fast Laravel development environment that uses roughly 7mb of RAM. Valet isn't a complete replacement for Vagrant or Homestead, but provides a great alternative if you want flexible basics, prefer extreme speed, or are working on a machine with a limited amount of RAM.

Official Documentation

Documentation for Valet can be found on the Laravel website.

Contributing

Thank you for considering contributing to Valet! You can read the contribution guide here.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

License

Laravel Valet is open-sourced software licensed under the MIT license.