templater | Converts PHP into Twig templates

 by   kocsismate PHP Version: 0.5.0 License: No License

kandi X-RAY | templater Summary

kandi X-RAY | templater Summary

templater is a PHP library. templater has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

I developed this library for a project where I had to replace the legacy PHP templates to Twig templates. The job was enormous: we had more than 16,000 PHP tags (sometimes with dozens of lines) in 400+ files. So thanks to Templater I managed to successfully convert (almost barely) with automatic techniques, the 92% of the different tags, and the 85% of all the tags (the majority of the difference comes from the fact that block endings, like "}" cannot be converted without extra work). So only ~2200 tags remained for manual conversion, but it came evident soon, that it's still too slow for me. Then I introduced "partial conversion", which means that a log file stores those tags which couldn't be fully converted, but some parts of them. It's very safe and useful for long, multiline tags: your templates are not threatened with partially working tags but you can copy the most parts of them to your template file.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              templater has a low active ecosystem.
              It has 1 star(s) with 0 fork(s). There are no watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              templater has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of templater is 0.5.0

            kandi-Quality Quality

              templater has no bugs reported.

            kandi-Security Security

              templater has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              templater does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              templater releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of templater
            Get all kandi verified functions for this library.

            templater Key Features

            No Key Features are available at this moment for templater.

            templater Examples and Code Snippets

            No Code Snippets are available at this moment for templater.

            Community Discussions

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install templater

            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/kocsismate/templater.git

          • CLI

            gh repo clone kocsismate/templater

          • sshUrl

            git@github.com:kocsismate/templater.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