Code Monkey home page Code Monkey logo

Darkwood

Darkwood website https://darkwood.com

add this to /etc/hosts

127.0.0.1 darkwood.localhost apps.darkwood.localhost photos.darkwood.localhost blog.darkwood.localhost hello.darkwood.localhost admin.darkwood.localhost

Nix Usage

This template is designed to provide a basic flake template for PHP development.

When using this template, four new files will be created in your project:

  • flake.nix: A default flake file for your project, containing the basic configuration for starting PHP development.
  • flake.lock: A lock file to lock the versions of the dependencies like php and composer. Use nix flake update to update them at your convenience.
  • README.md: This file.
  • .envrc: A file used by direnv that will automatically load the development environment.

Features of this flake template include:

  • A default flake development shell with PHP, Composer, GrumpPHP, PHPStan, PHPUnit, and Psalm. If you're using direnv, it will be automatically loaded. Otherwise use it with: nix develop .
  • The satis flake package provided as example on how to bundle a PHP application.
  • The satis flake application provided as example. Use it with: nix run .#satis -- --version
  • The composer flake application. Use it with: nix run .#composer -- --version
  • The phpstan flake application. Use it with: nix run .#phpstan -- --version
  • The phpunit flake application. Use it with: nix run .#phpunit -- --version
  • The psalm flake application. Use it with: nix run .#psalm -- --version
  • The symfony-demo flake application. Run it with nix run .#symfony-demo then go on http://127.0.0.1:8000.

For each features, Nix will detect the required extensions for PHP by reading the composer.json file. As long as your composer.json file list the required extensions in the require or require-dev sections, no any other configuration is needed on your part.

If you need to modify the PHP configuration, create a file .user.ini in the project with your custom PHP configuration directives.

For more customizations, feel free to edit the flake.nix file and add your own changes; the possibilities are endless.

Happy hacking !

Nix Node

https://github.com/svanderburg/node2nix

$ nix-env -f '<nixpkgs>' -iA nodePackages.node2nix
node2nix
nix-env -iA nixpkgs.nodejs-18_x

Bref

nix shell github:loophp/nix-shell#env-php82 --extra-experimental-features nix-command --extra-experimental-features flakes
vendor/bin/bref-dev-server --assets=public # http://localhost:8000/hello

# https://bref.sh/docs/local-development/event-driven-functions#api-gateway-local-development
./node_modules/.bin/serverless bref:local -f hello --data '{"name": "Jane"}'
vendor/bin/bref-local my-function.php '{"name": "Jane"}'
````## Update packages

List packages to update with composer:
```sh
composer outdated -D

Update Symfony recipes:

composer symfony:recipes:update

Darkwood's Projects

lgs icon lgs

Le Gardien du Savoir

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.