• Overview
    Key features
    • Observability
    • Auto-scaling
    • Multi-framework
    • Security
    • Django
    • Next.js
    • Drupal
    • WordPress
    • Symfony
    • Magento
    • See all frameworks
    • PHP
    • Python
    • Node.js
    • Ruby
    • Java
    • Go
  • Industries
    • Consumer Goods
    • Media/Entertainment
    • Higher Education
    • Government
    • Ecommerce
  • Pricing
  • Overview
    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
  • Login
  • Request a demo
  • Free Trial

Using Laravel with the Platform.sh CLI



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
AboutSecurity and complianceTrust CenterCareersPressContact us
Thank you for subscribing!
Field required
Leader Winter 2023
System StatusPrivacyTerms of ServiceImpressumWCAG ComplianceAcceptable Use PolicyManage your cookie preferencesReport a security issue
© 2024 Platform.sh. All rights reserved.
Supported by Horizon 2020's SME Instrument - European Commission 🇪🇺