• Overview
    Frameworks
    • Django
    • Next.js
    • Drupal
    • WordPress
    • Symfony
    • Magento
    • See all frameworks
    Features
    • Observability
    • Auto-scaling
    Solutions
    • Marketing Teams
    • Retail
    • Higher Education
  • Pricing
  • Featured articles
    • Switching to Platform.sh can help IT/DevOps organizations drive 219% ROI
    • Organizations, the ultimate way to manage your users and projects
  • Support
  • Docs
  • Contact
  • Login
  • Free Trial

Using Laravel with the Platform.sh CLI

phpcli

Notes

First, use the command platform create to quickly create a new Platform.sh project. The command will prompt you to configure the project for one of our regions with as much resources as you think you might need. The project will be created in just a few seconds, and the CLI will provide a project ID you can now use to interact with it. You can then use the command platform environment:init to initialize that project within any public GitHub repository. Here, we are using our Laravel template, that already includes Platform.sh's three configuration files to deploy. So long as the repository contains Platform.sh configuration files, it will then build and deploy the site. First, Platform.sh will run through the build hook of the application's .platform.app.yaml file, which defines its build process. Once completed, Platform.sh will validate domains for the environment, and issue new Let's Encrypt certificates for them if not present or if they will soon expire. Then the environment is created and deployed. Once the project has finished initializing, use the command platform url to view the new site, which will open in a browser window. Laravel has built and deployed on Platform.sh, and you're now ready to customize the site as you see fit.

Build your greatest app

Get started
Company
AboutSecurity and complianceTrust CenterBoard and investorsCareersPressContact us
Leader Winter 2023
System StatusPrivacyTerms of ServiceImpressumWCAG ComplianceManage your cookie preferencesReport a security issue
© 2023 Platform.sh. All rights reserved.
Supported by Horizon 2020's SME Instrument - European Commission 🇪🇺