php-pm | process manager , supercharger and load balancer | Web Framework library

 by   php-pm PHP Version: 2.4.0 License: MIT

kandi X-RAY | php-pm Summary

kandi X-RAY | php-pm Summary

php-pm is a PHP library typically used in Server, Web Framework, Symfony applications. php-pm has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

PPM - PHP Process Manager.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              php-pm has a medium active ecosystem.
              It has 6490 star(s) with 380 fork(s). There are 229 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 25 open issues and 266 have been closed. On average issues are closed in 389 days. There are 8 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of php-pm is 2.4.0

            kandi-Quality Quality

              php-pm has 0 bugs and 0 code smells.

            kandi-Security Security

              php-pm has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              php-pm code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              php-pm is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              php-pm releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.
              php-pm saves you 988 person hours of effort in developing the same functionality from scratch.
              It has 2245 lines of code, 202 functions and 21 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed php-pm and discovered the below as its top functions. This is intended to give you an instant insight into php-pm implemented functionality, and help decide if they suit your requirements.
            • Create a new worker instance .
            • Get mime type
            • Load the application configuration .
            • Handle slave close
            • Get socket file .
            • Requests a command .
            • Execute the command .
            • Parse query path .
            • Normalizes the application bootstrap class .
            • Get the status of the slaves .
            Get all kandi verified functions for this library.

            php-pm Key Features

            No Key Features are available at this moment for php-pm.

            php-pm Examples and Code Snippets

            No Code Snippets are available at this moment for php-pm.

            Community Discussions

            Trending Discussions on php-pm

            QUESTION

            Usage PPM on top of Aerys
            Asked 2017-Oct-02 at 19:41

            There is "Don’t use any blocking I/O functions in Aerys." warning at https://amphp.org/aerys/io#blocking-io. Should I use PPM instead of Aerys if I need usage of PDO (e.g., Prooph components) and want to reuse initialized application instance for handling different requests?

            I'm not bound to any existent PPM adapter (e.g., Symfony). Is there a way to reuse Aerys code (e.g., Router) for request-response logic when using PPM on top of Aerys (https://github.com/php-pm/php-pm/pull/267)?

            ...

            ANSWER

            Answered 2017-Oct-02 at 19:41

            You can just increase the worker count using the -w switch for the command line script to be higher if you want to use blocking functions. It's definitely not optimal, but with enough workers the blocking shouldn't be too noticeable, except for an increasing latency, which might occur.

            Another possibility is to move the blocking calls into one or multiple worker threads with amphp/parallel.

            As long as the responses are relatively fast everything should be fine. The issue begins if there's a lot of load and things get slower and might time out, because these are very long blocks then.

            PHP-PM doesn't offer too much benefit over using Aerys directly. It redirects requests to a currently free worker, but with high enough load the kernel load balancing will probably good enough and not all requests that take longer will be routed to one worker. In fact, using Aerys will probably be better, because it's production ready and has multiple independent workers instead of one master that might be a bottleneck. PHP-PM could solve that in a better way, but it's currently not implemented. Additionally, Aerys supports keep-alive connections, which PHP-PM does currently not support.

            Source https://stackoverflow.com/questions/46525897

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install php-pm

            You can download it from GitHub.
            PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/php-pm/php-pm.git

          • CLI

            gh repo clone php-pm/php-pm

          • sshUrl

            git@github.com:php-pm/php-pm.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link