Download the PHP package pesu/php-makecomment without Composer

On this page you can find all versions of the php package pesu/php-makecomment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-makecomment

PHP MakePhpComment Module

PHP MakePhpComment Nov 2015

by Per Sundberg

Introduction

This is a module that uses the framework Anax-MVC Content CTextFilter to format a textstring to a php-comment.

Requirement

This library package requires PHP 5.3 or later.

Usage

Install the ANAX-MVC from github on address: git clone https://github.com/mosbth/Anax-MVC.git

Install the module php-makecomment to folder ANAX-MVC\3pp.

The php-makecomment is meant to be used with class autoloading. Therefore the Anax-MVC\app\config\autoloader.php needs to be updated with: ->addNameSpace('pesu', ANAX_INSTALL_PATH . '3pp/php-makecomment/pesu')

The file Anax-MVC\src\Content\CTextFilter.php needs to add after row 'shortcode' => 'shortCode', with 'phpcomment' => 'phpcomment',

The file Anax-MVC\src\Content\CTextFilter.php needs to have function added.
/**

Add following to the ANAX-MVC/webroot/hello_view.php after $app->views->add('welcome/hello_world'); $app->router->add('', function() use ($app) {

$content = $app->textFilter->doFilter('Function: Test php comment\n\n@param
 string $text xxxx\n\n@return string text xxxx','shortcode, phpcomment');

$app->views->add('welcome/page', [
    'content' => $content,
]);

}); $app->router->handle();

To the view file Anax-MVC\app\view\welcome add a file page.tpl.php with content:

Bugs

To file bug reports please send email to: [email protected]

Development and Testing

This module has been developed at Blekinge Tekniska Högskola at Karlskrona Sweden and is a part of course DV14886 PHP MVC.

I tested the function with different strings in the hello_view.php Test 1 with empty string $content = $app->textFilter->doFilter('','shortcode, phpcomment'); Result: /**

Test 2 with one line string (no \n) $content = $app->textFilter->doFilter('Function: Test php comment','shortcode, phpcomment'); Result: /**

Test 3 with two line string (one \n) $content = $app->textFilter->doFilter('Function: Test php comment\n','shortcode, phpcomment'); Result: /**

Test 4 with three line string (two \n) $content = $app->textFilter->doFilter('Function: Test php comment\n\n','shortcode, phpcomment'); Result: /**

Test 5 with five line strings (four \n)
$content = $app->textFilter->doFilter('Function: Test php comment\n\n@param string $text xxxx\n\n@return string text xxxx','shortcode, phpcomment');

/**

Version History

PHP Markdown Module 1.0.0 (22 Nov 2015)

Copyright and License

PHP MakePhpComment Module Copyright (c) 2015 Per Sundberg


All versions of php-makecomment with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pesu/php-makecomment contains the following files

Loading the files please wait ....