Description
A dotnet based tool for persian language
ابزار Persian Tools alternatives and similar packages
Based on the "API" category.
Alternatively, view ابزار Persian Tools alternatives based on common mentions on social networks and blogs.
-
NancyFx
Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono. Note: This project is no longer maintained and has been archived. -
ServiceStack
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all -
Hot Chocolate
Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE. -
WexFlow
An easy and fast way to build automation and workflows on Windows, Linux, macOS, and the cloud. -
Xamarin.Essentials
Essential cross platform APIs for your mobile apps. -
FFImageLoading - Fast & Furious Image Loading
Image loading, caching & transforming library for Xamarin and Windows -
Mobius: C# API for Spark
C# and F# language binding and extensions to Apache Spark -
WebAPI Contrib
Community Contributions for ASP.NET Web API -
JsonApiDotNetCore
A framework for building JSON:API compliant REST APIs using ASP.NET and Entity Framework Core. -
SapphireDb
SapphireDb Server, a self-hosted, easy to use realtime database for Asp.Net Core and EF Core -
🎨 Awesome .Net Core Education
A curated list of awesome articles and resources for learning and practicing .Net Core and its related technologies. -
Lib.AspNetCore.ServerSentEvents
Lib.AspNetCore.ServerSentEvents is a library which provides Server-Sent Events (SSE) support for ASP.NET Core -
EISK Web API
Project based on latest .NET (v6.0) technologies for building scalable web api, along with clean architecture patterns. -
RedditSharp
C# Implementation of the Reddit API. This is an ("unofficial") Fork of SirCmpwn/RedditSharp with Nuget package/support. -
Nelibur
Message based webservice framework on the pure WCF -
CommandQuery
Command Query Separation for 🌐ASP.NET Core ⚡AWS Lambda ⚡Azure Functions ⚡Google Cloud Functions -
Lib.Web.Mvc
Lib.Web.Mvc is a library which contains some helper classes for ASP.NET MVC such as strongly typed jqGrid helper, attribute and helper providing support for HTTP/2 Server Push with Cache Digest, attribute and helpers providing support for Content Security Policy Level 2, FileResult providing support for Range Requests, action result and helper providing support for XSL transformation and more. -
cryptocompare-api
An async-based CryptoCompare API client library for .NET and .NET Core -
Crowdin .NET client
.NET client library for Crowdin API -
Juka
🥣 Juka Programming Language - Fast Portable Programming Language. Run code anywhere without complicated installations and admin rights. Simple, yet powerful new programming language [Easy to code and run on any system] IOT devices supported! -
Cloud Storage
Storage library provides a universal interface for accessing and manipulating data in different cloud blob storage providers -
Genius.NET
.NET library to access Genius API @ (https://www.genius.com) -
Google Search Results in .NET
Google Search Results via SERP API DotNet Package -
Developer Exception Json Response Middleware
Http Middleware Extensions for ASP.NET Core application -
Automatic Migration support for EF Core
EF Core Automatic Migration -
Gamepad-Controller-Test
Gamepads are often used as replacements for Mouse / Keyboard. While it is not possible to use them with every game, there are several games available that support gamepad controls, especially console ports of PC titles or even games designed for gamepad controls in the first place. To ensure maximum compatibility, Windows uses a default gamepad driver which supports a wide variety of gamepads. The most notable exception is the Xbox controllers, which still use XBCD for their enhanced features (e.g., force feedback). Therefore I have decided to make an easy test for gamers to test their gamepad controller devices on the go online without wasting any time trying to install third-party softwares which are usually out of order on their PCs to get the job done. This project is inspired by the work of @greggman and tweaks his work a little bit for a better user experience, all credit goes to him for this amazing work and for making my job easy. -
DuckSharp
An unofficial asynchronous .NET DuckDuckGo Instant Answer Web API wrapper -
Boycotter
Simple library for removing unnecessary properties from objects. -
Phoesion.DevJwt
Dotnet tool/lib for testing JWT-protected web APIs -
X.Web.Sitemap
Simple sitemap generator for .NET and .NET Core -
ASP.NET Web API
Framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices -
ASP.NET WebAPI
Framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices
Collect and Analyze Billions of Data Points in Real Time
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of ابزار Persian Tools or a related project?
README
ابزار Persian Tools ابزاری برای برنامه نویسان دات نت که که فیچرهای زیادی را برای شما فراهم می کند که در ادامه آنها را شرح خواهیم داد. نکته مهم: با توجه به اینکه برخی تعطیلات بر اساس ماه های قمری می باشند و ممکن است دچار تغییرات شوند که این تغییرات قبل از وقوع حتی در time.ir هم قابل پیش بینی نبوده اند مانند عید فطر سال 1401 بنابراین توجه داشته باشید که درصد خطایی در این حد در کتابخانه وجود دارد
چگونه آنرا نصب کنیم؟
Nuget Package Manager
Install-Package PersianTools.Core
.NET CLI
dotnet add package PersianTools.Core
امکانات و ویژگی ها
- [نوع جدید تاریخ شمسی](#نوع-جدید-تاریخ-شمسی)
- [تبدیل اعداد به حروف](#تبدیل-اعداد-به-حروف)
- [لیست شهرها و استان های ایران](#)
- [اعتبار سنجی کد ملی](#اعتبار-سنجی-کد-ملی)
- [اعتبار سنجش شماره کارت بانکی](#)
- [اعتبار سنجش شماره شبا](#)
- [موقعیت مکانی شماره تلفن، موبایل و کدپستی](#)
نوع جدید تاریخ شمسی
پس از نصب این پکیج نوع جدیدی به نام PersianDateTime
برای شما قابل استفاده خواهد بود که ویژگی های آن را در ادامه برای شما توضیح خواهیم داد.
که با استفاده از آن میتوانید انواع تبدیل تاریخ را انجام داده و کلیه تعطیلات شمسی و قمری به همراه مناسبتهای یک تاریخ مشاهده کنید
فقط نکته ای که اهمیت داره اینه که این نوع Reference Type
هستش و باید در استفاده ازش به این نکته نوجه کنید
تعریف تاریخ شمسی
به یکی از روش های زیر می توانید یک تاریخ شمسی را تعریف نمایید
var persianDate1 = new PersianDateTime(1399, 10, 13); // 1
var persianDate2 = new PersianDateTime("1399/10/13"); // 2
var persianDate3 = new PersianDateTime("1399/12/29 23:30"); // 3
var persianDate4 = new PersianDateTime("1399/12/29 23:30:00"); // 4
var persianDate5 = new PersianDateTime(1399, 12, 29, 23, 30, 10); // 5
var persianDate6 = new PersianDateTime(DateTime.Now); // 6
مناسبت های یک تاریخ خاص
Example 1:
var dt1 = new PersianDateTime("1401/02/13").GetDateInformation();
Output:
[
{
"id": "61-10-02",
"description": "تعطیل به مناسبت عید سعید فطر",
"calenderType": 2,
"dateType": 3,
"isHoliDay": true,
"calenderTypeDesc": "قمری",
"dateTypeDesc": "تعطیل رسمی"
}
]
Example2
var dt1 = new PersianDateTime("1401/02/15").GetDateInformation();
Output:
[
{
"id": "1-02-15",
"description": "روز بزرگداشت شیخ صدوق",
"calenderType": 1,
"dateType": 4,
"isHoliDay": false,
"calenderTypeDesc": "شمسی",
"dateTypeDesc": "مناسبت ملی"
},
{
"id": "1-02-15",
"description": "جشن میانه بهار ، جشن بهاربد",
"calenderType": 1,
"dateType": 4,
"isHoliDay": false,
"calenderTypeDesc": "شمسی",
"dateTypeDesc": "مناسبت ملی"
},
{
"id": "1-02-15",
"description": "روز شیراز",
"calenderType": 1,
"dateType": 4,
"isHoliDay": false,
"calenderTypeDesc": "شمسی",
"dateTypeDesc": "مناسبت ملی"
},
{
"id": "1-05-05",
"description": "روز جهانی ماما",
"calenderType": 3,
"dateType": 5,
"isHoliDay": false,
"calenderTypeDesc": "میلادی",
"dateTypeDesc": "مناسبت بین المللی"
}
]
فاصله دو تاریخ شمسی
var dt1 = new PersianDateTime("1399/12/29");
var dt2 = new PersianDateTime("1399/11/29");
Convert.ToInt32(dt1.DateDifference(dt2));
Output: 30
ابتدا روز و انتهای روز
var dt1 = new PersianDateTime("1399/12/29 23:30:20");
var start = dt1.ShamsiStartDateTimeOfDay();
Output:
1399/12/29 00:00:00
var dt1 = new PersianDateTime("1399/12/29 23:30:20");
var end = dt1.ShamsiEndDateTimeOfDay();
Output:
1399/12/29 23:59:59
آخرین روز سال
var d1 = PersianDateTime.ShamsiEndDateTimeOfPersianYear(1397);
Output:
1397/12/29
var d2 = PersianDateTime.ShamsiEndDateTimeOfPersianYear(1399);
Output:
1399/12/30
آخرین روز ماه
var d1 = PersianDateTime.ShamsiEndDateTimeOfMonth(1397, 12);
Output:
1397/12/29
var d2 = PersianDateTime.ShamsiEndDateTimeOfMonth(1399, 12);
Output:
1399/12/30
تعداد روزهای کاری در یک بازه تاریخی
var d1 = new PersianDateTime(1397, 8, 1);
var d2 = new PersianDateTime(1397, 8, 30);
PersianDateExtensions.GetWorkingDays(d1,d2);
Output:
20
PersianDateExtensions.GetWorkingDays(d1,d2, true); // با احتساب روزهای پنجشنبه غیر تعطیل
Output:
23
تعداد روزهای تعطیل پشت سرهم در یک سال
ورودی اول این تابع سال شمسی و ورودی دوم تعداد روز می باشد و خروجی آن یک لیست از تاریخ های پشت سر هم که تعطیل می باشد
var result = PersianDateExtensions.GetContinuousHolidays(year, 3);
Output:
[Item1: 1400/03/13 - 1400/03/16, Item2: ...]
تبدیل اعداد به حروف
int price = 11200000;
string faPrice = PersianTools.Core.CharacterUtil.Convert(price).Replace(" ", "");
Output:
یازده میلیون و دویست هزار
اعتبار سنجی کد ملی
var nationalCode = "0032546580";
var validate = nationalCode.IsValidNationalCode();
Output:
True
در حال تکمیل...
*Note that all licence references and agreements mentioned in the ابزار Persian Tools README section above
are relevant to that project's source code only.