承接 leafs/anchor 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

leafs/anchor

最新稳定版本:v1.6.2

Composer 安装命令:

composer require leafs/anchor

包简介

Leaf PHP util module

README 文档

README





Leaf Anchor

Latest Stable Version Total Downloads License

This package contains leaf's utils for deep sanitizing of data and basic security provided for your app data. It also serves as the base for security provided in other modules like CSRF.

Installation

You can easily install Leaf using Composer.

composer require leafs/anchor

Basic Usage

After installing anchor, create an index.php file.

Base XSS protection

<?php
require __DIR__ . "vendor/autoload.php";

$data = $_POST["data"];
$data = Leaf\Anchor::sanitize($data);

echo $data;

This also works on arrays

<?php
require __DIR__ . "vendor/autoload.php";

$data = Leaf\Anchor::sanitize($_POST);

echo $data["input"];

You may quickly test this using the built-in PHP server:

php -S localhost:8000

统计信息

  • 总下载量: 47.84k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 2
  • 依赖项目数: 9
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固