lemmyland
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
exakat@lemmy.world to PHP@lemmy.worldEnglish · 4 months ago

Merge PHP projects into a single file with phpfilemerger

www.tqdev.com

external-link
message-square
0
link
fedilink
4
external-link

Merge PHP projects into a single file with phpfilemerger

www.tqdev.com

exakat@lemmy.world to PHP@lemmy.worldEnglish · 4 months ago
message-square
0
link
fedilink
I wrote phpfilemerger, a small CLI tool that takes a PHP entry point and all of its class dependencies and produces a single self-contained PHP file. It uses an AST parser to resolve dependencies properly, so the output is ordered and ready to run. Use case: PHP-CRUD-API I maintain a PHP project that is distributes as a single file (PHP-CRUD-API) and phpfilemerger automates the process of building. It produces that one-file distribution, keeping class order and namespaces intact so the merged file works just like the original project. It statically analyzes your codebase using PSR-4/PSR-0 mappings and inlines all dependencies in the correct order.
alert-triangle
You must log in or # to comment.

PHP@lemmy.world

php@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !php@lemmy.world

<?

namespace lemmy\php;

/*

Welcome to the PHP community on Lemmy

#Rules:

1: Soon™

#Helpful stuff:

PHP Documentation

Composer

PHP Standards

#Common frameworks:

Symfony

Larvel

*/

echo “Welcome”;

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2 users / day
  • 12 users / week
  • 13 users / month
  • 190 users / 6 months
  • 1 local subscriber
  • 425 subscribers
  • 173 Posts
  • 67 Comments
  • Modlog
  • mods:
  • Madpeter@lemmy.world
  • BE: 0.19.19
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org