scalar_objects | adds support for method calls

 by   nikic PHP Version: Current License: MIT

kandi X-RAY | scalar_objects Summary

kandi X-RAY | scalar_objects Summary

scalar_objects is a PHP library. scalar_objects has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

This extension implements the ability to register a class that handles the method calls to a certain primitive type (string, array, …​). As such it allows implementing APIs like $str->length(). The main purpose of this repo is to provide a proof of concept implementation that can be used to design the new APIs. The switch to object syntax for operations on primitive types is a unique opportunity for PHP to redesign many of its inconsistent core APIs. This repo provides the means to quickly prototype and test new APIs as userland code. Once the APIs are figured out it will be proposed for inclusion into PHP. Note: The ability to register type handlers from userland is just for prototyping. It’s not something I would actually want in PHP in the end.

            kandi-support Support

              scalar_objects has a medium active ecosystem.
              It has 1094 star(s) with 42 fork(s). There are 54 watchers for this library.
              It had no major release in the last 6 months.
              There are 9 open issues and 26 have been closed. On average issues are closed in 130 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of scalar_objects is current.

            kandi-Quality Quality

              scalar_objects has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              scalar_objects 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

              scalar_objects releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed scalar_objects and discovered the below as its top functions. This is intended to give you an instant insight into scalar_objects implemented functionality, and help decide if they suit your requirements.
            • Replaces a string with another string .
            • Prepares the length .
            • Returns the index of the last occurrence of a given string .
            • Checks if a string has a predicate .
            • Returns true if the string ends with the given string .
            • Is the start of a string?
            • Returns the last occurrence of a string in a string
            • Returns a Case sensitive view .
            Get all kandi verified functions for this library.

            scalar_objects Key Features

            No Key Features are available at this moment for scalar_objects.

            scalar_objects Examples and Code Snippets

            No Code Snippets are available at this moment for scalar_objects.

            Community Discussions

            No Community Discussions are available at this moment for scalar_objects.Refer to stack overflow page for discussions.

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


            No vulnerabilities reported

            Install scalar_objects

            The master branch supports PHP version 7.0 to 8.0. Use the [version 0.2][version_0_2] branch for PHP 5 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
          • HTTPS


          • CLI

            gh repo clone nikic/scalar_objects

          • sshUrl


          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link