Giter Site home page Giter Site logo

create-siler-app's Introduction

create-siler-app

🧱 Set up a modern Siler app by running one command.

composer create-project siler/app my-app

Scripts

composer start

Runs CLI SAPI built-in web server on port 8080.

composer swoole

Runs Swoole web server on port 9501.

docker-compose up

Runs Docker using Dwoole on port 9501 as well.

DevTools

It uses ramsey/devtools with Pest override for test:unit.

analyze
  analyze:phpstan      Runs the PHPStan static analyzer.
  analyze:psalm        Runs the Psalm static analyzer.

build
  build:clean          Removes everything from the build directory that is not under version control.
  build:clear-cache    Removes everything from build/cache that is not under version control.

lint
  lint:fix             Checks source code for coding standards issues and fixes them, if possible.

test
  test:all             Runs linting, static analysis, and unit tests.
  test:coverage:ci     Runs the unit test suite and generates a Clover coverage report.
  test:coverage:html   Runs the unit test suite and generates an HTML coverage report.
  test:unit            Runs the unit test suite.

How-to

bootstrap.php

Is a good place to startup your application, things like database connections, dependency injection containers, setups etc.

index.php

Is called on each request, is a good place for routes and things that depends on the current request.

create-siler-app's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar leocavalcante avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

lumenpink zorca

create-siler-app's Issues

Class "Laminas\ConfigAggregator\ConfigAggregator" not found

As title says, everything works fine until I hit an endpoint then it returns this error:

Uncaught Error: Class "Laminas\ConfigAggregator\ConfigAggregator" not found in (path omitted)/siler/src/Config/Config.php:76

Adding laminas/laminas-config-aggregator and laminas/laminas-config as dependencies seemed to solve this issue.

PHPStan: Cannot redeclare {siler function}

Hello!

I'm still having the problem you mentioned here on this issue:
phpstan/phpstan#722

It appears that you had this problem but doesn't anymore, because you decided to use phpstan and psalm with Create Siler App?
How did you solve it? Currently I can't commit without --no-verify because the pre-commit hook is always failing because of this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.